wip csp header setting

pull/4339/head
Niklas Fiekas 2018-05-07 17:38:56 +02:00
parent 7066dc893a
commit f7c2a26519
2 changed files with 7 additions and 0 deletions

View File

@ -257,6 +257,7 @@ security {
base_url = ${net.base_url}
email = ${net.email}
}
csp_header = "Content-Security-Policy"
}
oauth {
mongodb {

View File

@ -50,6 +50,12 @@ final class Env(
}
import settings._
val cspHeaderSetting = settingStore[String](
"cspHeader",
default = config getString "csp_header",
text = "Send content security policy in this header".some
)
val recaptchaPublicConfig = RecaptchaPublicConfig(
key = config getString "recaptcha.public_key",
enabled = config getBoolean "recaptcha.enabled"