Skip to content

Commit 057a605

Browse files
authored
Set SameSite policy for Cookie (#242)
1 parent 42ab63d commit 057a605

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/org/pac4j/undertow/context/UndertowWebContext.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ public void addResponseCookie(final Cookie cookie) {
122122
newCookie.setMaxAge(cookie.getMaxAge() < 0 ? null : cookie.getMaxAge());
123123
newCookie.setSecure(cookie.isSecure());
124124
newCookie.setHttpOnly(cookie.isHttpOnly());
125+
newCookie.setSameSiteMode(cookie.getSameSitePolicy());
125126
getExchange().setResponseCookie(newCookie);
126127
}
127128

0 commit comments

Comments
 (0)