mirror of
https://github.com/OpenBankProject/API-Explorer.git
synced 2026-02-06 10:47:23 +00:00
refactor/removed the set_response_header_Set-Cookie props
This commit is contained in:
parent
eb0a6255ce
commit
ee427a35fd
@ -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"
|
|
||||||
@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user