Permalink
Browse files

Added set root path for all outbound cookies

  • Loading branch information...
svenkubiak committed Sep 4, 2018
1 parent bde3bb1 commit b7778418972b3fbd5cd151c423cd68807fa81fbb
@@ -102,6 +102,7 @@ protected void setSessionCookie(HttpServerExchange exchange) {
.setSameSite(true)
.setSameSiteMode(SAME_SITE_MODE)
.setHttpOnly(true)
.setPath("/")
.setSecure(this.config.isSessionCookieSecure());
if (session.getExpires() != null) {
@@ -163,6 +164,7 @@ protected void setAuthenticationCookie(HttpServerExchange exchange) {
.setSecure(this.config.isAuthenticationCookieSecure())
.setHttpOnly(true)
.setSameSite(true)
.setPath("/")
.setSameSiteMode(SAME_SITE_MODE);
if (authentication.getExpires() != null) {
@@ -222,6 +224,7 @@ protected void setFlashCookie(HttpServerExchange exchange) {
.setSecure(this.config.isFlashCookieSecure())
.setHttpOnly(true)
.setSameSite(true)
.setPath("/")
.setSameSiteMode(SAME_SITE_MODE)
.setExpires(DateUtils.localDateTimeToDate(expires));

0 comments on commit b777841

Please sign in to comment.