-
Notifications
You must be signed in to change notification settings - Fork 65
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
Default behaviour works fine for Safari, Chrome and Firefox. But can Microsoft edge be added to this list? #27
Comments
If you're saying you want to set the SameSite=None only for Microsoft Edge and have the gem do nothing for other browsers, that's exactly what the user_agent_regex configuration does. If you want to exclude Microsoft Edge you can also do that by creating a regex that just matches all non-Edge browsers. Does that answer your question? |
Thanks for the reply. No it's a bit different: we want to keep the current behaviour and include Microsoft Edge. |
The gem should currently be working for Microsoft Edge, if it's not that's a bug. I just tested with Edge 91.0.864.70 on Mac OS 11.4 and it set the SameSite=None directive. If you're not seeing that, make sure you're testing over https first and that you don't have a regex that's preventing it. If you're still not seeing SameSite=None can you provide more details about your setup? |
The user reports under windows 10 it doesnt work with microsoft edge. I asked for the user agent string and got this back as reply:
So Im guessing this is the one not working. |
I plugged this user agent string in as a test case and it seems to be working so I'm not really sure what might be going on here. The gem only sets SameSite=None if the SameSite directive isn't already set. Is it possible that your application or some other middleware is manually setting SameSite=Lax somewhere? |
No, as also it works fine under macOS. I will reply in my jira ticket that it should work. Maybe the user is experiencing some kind of caching of his cookie? |
I see there is a user agent to pin down behaviour to one browser using a regex.
However we want to leave the default behaviour and just add one extra browser: microsoft edge (it also change the cookie to lax and has to get similar patch as with chrome where we change it to same_site=none instead).
What is the easiest way to accomplish this using the gem? Do I need to monkey patch the UserAgentChecker?
https://docs.microsoft.com/en-us/microsoft-edge/web-platform/site-impacting-changes
The text was updated successfully, but these errors were encountered: