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
0
votes
1 answer

SameSite warning in Chrome Extensions

We are working on Chrome extensions that reads cookies from a domain which was set without SameSite attribute writes cookies to a domain without SameSite attribute We have added permissions to both the domains in manifest.json We enabled the…
Raja S R
  • 1
  • 1
0
votes
1 answer

Will the new SameSite cookie attribute effectively prevent all targeted ads?

There is a new attribute for cookies called SameSite that is by default set to allow Get requests for cross-sites to prevent CSRF via other HTTP Verbs. As far as I know all targeted ads are heavily relying on cross-site cookies. Now if browsers or a…
Ilya Chernomordik
  • 27,817
  • 27
  • 121
  • 207
0
votes
0 answers

How to find my cookie's resource and come from?

There is a cookie that named by TS0157d632 and I want to assign SameSite attribute for it. But I did not find that cookie comes from? I think, SSL certificates affect it because same code published another site which is not certificated on same…
Mert Metin
  • 373
  • 2
  • 13
0
votes
0 answers

Chrome SameSite Cookies

if you work with SameSite cookie attribute and set it to strict and the server return a http error code like 404 or 500 an error message is displayed in chrome. So far so good. But if then the user refresh the page (F5 or reload button) while the…
Saftpresse99
  • 849
  • 7
  • 16
0
votes
0 answers

Cookie from a different source

Given the following resolver for a mutation: async signin(parent, { name, password }, ctx, info) { // Check if there is a user with the name const user = await ctx.db.query.user({ where: { name } }) if (!user) { …
Miki Nyeste
  • 11
  • 1
  • 2
0
votes
1 answer

Apache mod_headers regex for multiple cookies?

I'm using the following code to edit set the SameSite attribute for specific cookies: Header always edit Set-Cookie ^(login_session.*)$ $1;SameSite=Strict Header always edit Set-Cookie ^(different_cookie.*)$…
Ivan
  • 1,274
  • 16
  • 22
0
votes
1 answer

How can I restore a session from a Cross-Site Request where the session cookie uses SameSite?

Google have said that they will add the SameSite=Lax attribute to cookies by default in February 2020. In preparation, we have started testing using SameSite=Lax with all our cookies, including our session cookie (PHPSESSID). We have come across a…
Tom
  • 14,041
  • 16
  • 64
  • 80
0
votes
1 answer

tornado using RequestHandler.set_secure_cookie() doesn't allow adding samesite attribute

In my python backend application, I'm trying to set a secure cookie with the valid tornado attributes. However, I had a veracode issue saying that I need to set the attribute samesite=strict. Doing as follows: # this line is called from another…
Ziko
  • 919
  • 2
  • 10
  • 22
0
votes
1 answer

console error how to set SameSite attribute

I'm getting the following msgs in my console. How do I fix these? A cookie associated with a cross-site resource at http://widgets.wp.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with…
DCR
  • 14,737
  • 12
  • 52
  • 115
0
votes
1 answer

google sign in api (platform.js) setting cookies without SameSite attribute?

On using the google sign-in api [https://apis.google.com/js/platform.js]. I noticed some messages in chrome (which i believe i hadn't seen before, so possibly a recent warning). Below is one of them (but others are on the same lines with different…
noi.m
  • 3,070
  • 5
  • 34
  • 57
0
votes
1 answer

Google Chrome does not attach Cookies for CORS request?

I am trying to make a CORS request with credentials(Cookies attached) and Chrome is not attaching the Cookie to my request. I have set the cookie to a sub-domain of the existing page and i could observe it is set successfully from the Cookie…
0
votes
1 answer

samesite is not working for ngcookies in Angular JS

I am using ngCookies for my Angular JS project. I am trying to set samesite option as strict(as mentioned below), but it's not working. Could anyone please help me how can I set samesite for Angular JS cookies? I tried as per this Angular JS…
Nirmala
  • 65
  • 2
  • 10
0
votes
1 answer

Tracking an event on a mail formular within an iframe

I am having some trouble with setting up tracking in GTM. The tag i have create doesn't fire, when someone sends us an mail. I want to track, how many mails are sent from a contact form within a iframe on my site. The mail-form is provide by the…
Whap
  • 9
  • 1
-1
votes
1 answer

How can I remain logged-in in the iframe which is used in a different domain?

I am using an iframe in my chrome extension app, the iframe src has link to my server, I login to my server through the iframe, but when I refresh the domain which contains the iframe I do not get the logged in status. After doing some research I…
-1
votes
1 answer

Samesite cookie warning issue in chrome browser console window when submitting PayPal form on body load

When running our ASP.net application using a chrome browser that submits a PayPal form on body load at run time, a warning message "A cookie associated with a cross-site resource at https://paypal.com/ was set without the SameSite attribute. It has…
Kamal
  • 453
  • 1
  • 10
  • 22
1 2 3
30
31