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

Firefox rejecting cookies over SameSite attribute? #752

Open
pat227 opened this issue Aug 12, 2022 · 0 comments
Open

Firefox rejecting cookies over SameSite attribute? #752

pat227 opened this issue Aug 12, 2022 · 0 comments

Comments

@pat227
Copy link

pat227 commented Aug 12, 2022

It's been a long time and perhaps I posted this in the wrong place and should have posted here instead:
ocsigen/ocsigenserver#194

Copy pasted:
I have a working ocsigenserver instance version 2.16.0 on Ocaml 4.10.0 and until relatively recently it was working ok. However Firefox (version 88.0.1) is rejecting cookies that are required for eliom sessions (which is a big problem). This issue does not arise with Chrome version 90.0.4430. The Firefox webdeveloper tools reveal this message:

Some cookies are misusing the recommended “SameSite“ attribute Cookie “eliomdatasession||||connect_state” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite
I have to admit I am not using https but I don't really need that for my use case, and I'm not sure that's entirely relevant. Examining the cookie in question I can see that it lacks the samesite attribute (it shows no restriction). And that modifying the cookie to "Lax" fixes the problem.

Does anyone know if Ocsigenserver is going to properly set this cookie attribute in a future later version, or does it already? Or how to set the cookies to "Lax" or some other valid value?

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