-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Getting SameSite Cookie warnings in Firefox #627
Comments
Is this issue still up? |
@Abhirup-99 Yes it is, but you'd need to read #613 carefully before tackling it, because Cookies are now only used in a few rare cases (mostly IE11 and Edge Legacy from file:// protocol). I guess Firefox was showing that warning due to our migration code from Cookies to LocalStorage. |
I suppose we can use |
Yes I guess that would help. |
@Abhirup-99 Don't worry, the problem is because Travis can't connect to Sauce Labs due to your not having write access to this Repo. I'll push the same commit to a temporary branch to enable the tests to start running on this one. It's just a quirk of how the tests are set up. |
Thanks for the response. Okay, I was confused how this minor change failed. |
It's passed now. Will test on a browser that still uses cookies (most use localStorage). |
I am getting warnings in Kiwix JS with Firefox that our Cookies have an insecure
SameSite
attribute that will soon be rejected. There is a link to https://developer.mozilla.org/es/docs/Web/HTTP/Headers/Set-Cookie/SameSite . In fact we don't set theSameSite
attribute, but this assumesSameSite=None
(for now) and I believe this is what is causing the warning.For almost all use cases, we have moved from Cookies to localStorage as a result of #613 . This has been merged into master, but not yet released. However, in some rare contexts (documented in #613) the app will still use Cookies.
It seems the fix would be as simple as setting the Cookie with
SameSite=Lax
or (ideally)SameSite=Strict
.The text was updated successfully, but these errors were encountered: