You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by GitBox <gi...@apache.org> on 2020/08/20 18:52:56 UTC

[GitHub] [shiro] bdemers commented on a change in pull request #252: [SHIRO-789] Add SameSite option to AbstractShiroWebConfiguration.buidCookie

bdemers commented on a change in pull request #252:
URL: https://github.com/apache/shiro/pull/252#discussion_r474200806



##########
File path: support/spring/src/main/java/org/apache/shiro/spring/web/config/AbstractShiroWebConfiguration.java
##########
@@ -123,6 +131,19 @@ protected Cookie buildCookie(String name, int maxAge, String path, String domain
         cookie.setPath(path);
         cookie.setDomain(domain);
         cookie.setSecure(secure);
+        cookie.setSameSite(Cookie.SameSiteOptions.LAX);

Review comment:
       nit: you could call the newer method from here




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org