lapis
lapis copied to clipboard
lapis_session warning on modern Firefox
Firefox console says the following:
Cookie “lapis_session” 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/Cookies
Chrome will, too. They've just paused the rollout because of the human malware: https://www.chromium.org/updates/same-site
The cookie_attributes method will let you override any cookie parameters appended to set cookie response headers: https://leafo.net/lapis/reference/actions.html#request-object/cookies
Here's the default value: "Path=/; HttpOnly"
I was under the impression that browsers were going to be setting SameSite=Lax by default. I think Lax makes the most sense for a default here.