Skip to content

Commit

Permalink
SameSite=Strict
Browse files Browse the repository at this point in the history
  • Loading branch information
samie committed Jul 31, 2024
1 parent ec94fc7 commit bd2cbfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/example/application/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public String generateHeader(Cookie cookie, HttpServletRequest request) {
// Needs to be secure
if (cookie.getName().startsWith("JSESSIONID")) {
cookie.setSecure(true);
cookie.setAttribute("SameSite", SameSiteCookies.NONE.getValue());
cookie.setAttribute("SameSite", SameSiteCookies.STRICT.getValue());
cookie.setAttribute("Partitioned", "true");
}
return super.generateHeader(cookie, request);
Expand Down

0 comments on commit bd2cbfb

Please sign in to comment.