refactor/removed the set_response_header_Set-Cookie props

This commit is contained in:
Hongwei 2023-11-21 16:21:09 +01:00
parent eb0a6255ce
commit ee427a35fd
2 changed files with 0 additions and 7 deletions

View File

@ -186,5 +186,3 @@ session_inactivity_timeout_in_minutes = 30
# Please note that depricated name ot this props is: language_tag # Please note that depricated name ot this props is: language_tag
default_locale = en_GB default_locale = en_GB
set_response_header_Set-Cookie = "Path=/; HttpOnly; Secure"

View File

@ -247,14 +247,9 @@ class Boot extends MdcLoggable{
// Do not change default value // Do not change default value
} }
val setCookieHeader: (String, String) = Props.get("set_response_header_Set-Cookie") match {
case Full(value) => ("Set-Cookie", value)
case _ => ("Set-Cookie", "Path=/; HttpOnly; Secure")
}
//for XSS vulnerability, set X-Frame-Options header as DENY //for XSS vulnerability, set X-Frame-Options header as DENY
LiftRules.supplementalHeaders.default.set( LiftRules.supplementalHeaders.default.set(
("X-Frame-Options", "DENY") :: ("X-Frame-Options", "DENY") ::
setCookieHeader ::
Nil Nil
) )