Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for setting SameSite attribute explicitly via application.conf #690

Open
ghost opened this issue Jan 8, 2021 · 1 comment
Open

Comments

@ghost
Copy link

ghost commented Jan 8, 2021

Cookie prefix, session expiry etc. can all be set via application.conf, but I haven't been able to set the SameSite attribute thus far.

Has anybody else?

Is it documented anywhere?

@hugogoncalves
Copy link

Simply said, SameSite attribute is not part of Servlet API 3.1 so we have no support .
I lost maybe 2 days looking for a solution. It looks we can try to use a more recent version of Jetty and set comment
cookie atribute
cookieHttp.setComment(HttpCookie.SAME_SITE_NONE_COMMENT);
This is little fishy.
https://wiki.shibboleth.net/confluence/display/DEV/Tomcat+and+Jetty+SameSite+Workarounds

I have not tried this solution. I have make some atemps with filters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant