Questions tagged [samesite]

Use this tag for questions about errors caused by a browser ignoring a Set-Cookie header—especially for cross-origin requests—due to a SameSite attribute being missing or having a certain value. Also for questions about implementing SameSite in your site's response headers. Consider adding the [cookies] tag too. SameSite instructs browsers to either restrict a cookie to first-party / same-site contexts or allow it in third-party / cross-site contexts.

The SameSite attribute for the Set-Cookie response header instructs browsers to either restrict a cookie to first-party / same-site contexts or allow it in third-party / cross-site contexts.

In your browser devtools console, you may see an error such as the following:

A cookie associated with a cross-site resource at was set without the SameSite attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with SameSite=None and Secure.

For a Set-Cookie response header which lacks the SameSite attribute, browsers are beginning to treat the Set-Cookie response header as if it had a SameSite=Lax attribute — which causes browsers to ignore cookies sent in cross-origin fetch/XHR/axios, etc., requests.

Recent versions of modern browsers provide a more secure default for SameSite to your cookies and so the following message might appear in your console:

Cookie “myCookie” has “SameSite” policy set to “Lax” because it is missing a “SameSite” attribute, and “SameSite=Lax” is the default value for this attribute.

454 questions
-1
votes
1 answer

Google Chrome v80 'sameSite' parameter issue

Recently my Google chrome got update which is causing issue in my application . My application is using springboot-1.5 in backend and angular 4 in frontend ans also I am using Google Chrome version - 80.0.3987.132 (Official Build) (64-bit) OS…
-1
votes
1 answer

How can I make Set-Cookie warning disappear on MERN app?

so I have an app made with the MERN stack, and I set up the next code on my server.js app.get("*", (req, res) => { res.setHeader("Set-Cookie", "HttpOnly;Secure;SameSite=Strict"); res.sendFile(path.resolve(__dirname, "client", "build",…
Norman Pleitez
  • 313
  • 2
  • 15
-3
votes
1 answer

How to indicate whether to send a cross site cookies

enter image description here Pls how do I solve the same site issues
Praisezee
  • 11
  • 1
1 2 3
30
31