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

Setting "SameSite=Lax" value with my cookie

I just got a warning in Chrome that the way I've been setting a cookie needs to be updated with the "SameSite" Attribute. I found this php page here: https://wiki.php.net/rfc/same-site-cookie Based on this, I have updated my setCookie…
0
votes
1 answer

SameSite=None w/ Secure Breaking iFrame in IE11

With the recent changes it seems that SameSite cookie attributes are throwing a wrench into my website now. A cross-browser iframe that was working before on my site is now broken - even with the SameSite=None; Secure being passed through the iFrame…
CJdriver
  • 458
  • 7
  • 20
0
votes
1 answer

Is there a site that fails Chrome's new samesite policy

I'm testing a site is unaffected by Chrome's (version 80) new samesite policy. All appears well, and so I wonder if there's a public facing website that clearly fails the new policy so I can confidently confirm the changes I've applied to my…
user619882
  • 350
  • 3
  • 13
0
votes
1 answer

Selenium - why the loaded cookies aren't fully working?

I've created a function(Selenium-Java) to login, save cookies and close current sesion. Then open the browser again and load those cookies(simulated). The cookies were loaded and I'm loged in that page. But when I try to use one of the buttons from…
0
votes
1 answer

Samesite Attribute Adjustments - AdWords & Analytics Cookies

AdWords & Analytics Cookie Errors Despite enabling Samesite flags per this documentation, we’re still seeing errors from sites including “adwords.google.com,” and “analytics.google.com.” According to the documentation & warning messages we’ve…
0
votes
1 answer

Do Samesite cookies changes effects sessionStorage too?

I'm using sessionStorage at some places in my application. Since last few days, I've noticed that sessionStorage becoming null if I read it after API call. Is this is because of Chrome Update? If yes, Please let me know how I can resolve it?
srashtisj
  • 151
  • 4
  • 19
0
votes
2 answers

SameSite cookie property lost

[Updated - see comment at end] Google will be changing the behaviour of its Chrome browser so that cookies will no longer work when hosted in another domain's IFRAME unless the cookies are explicityly set to SameSite = None, and Secure. To this end,…
DrGriff
  • 4,394
  • 9
  • 43
  • 92
0
votes
1 answer

Polyfill SameSite cookie attribute

Is there a way to polyfill the SameSite cookie attribute so I can use this feature with legacy browsers or older versions of a specific browser? https://caniuse.com/#feat=same-site-cookie-attribute
fox
  • 157
  • 1
  • 11
0
votes
1 answer

iOS 12 support for Chrome V80 for samesite

iOS 12 has a known bug when setting samesite=none; the browser acts as if samesite=strict (Reference). Chrome V80 is changing the default behavior of cookies to be set to Lax if the value is unset (Reference). Is it possible to support Chrome V80 on…
nsmith29
  • 1
  • 1
  • 1
0
votes
1 answer

ASP.NET how to remove SameSite cookie parameter

I have added to my web.config file. But the application is still not working on iOS 12. Is there a way to remove SameSite cookie parameter in ASP.NET if device running iOS 12?
user2412672
  • 1,459
  • 3
  • 20
  • 36
0
votes
1 answer

SameSite Cookie setup by third party developers

We have a pixel file just like google analytics, facebook pixel, hotjar pixel where we give to our customers and they it to their website. We then set some cookies on their website with our domain. I read this article on SameSite cookies and I…
Akash Joshi
  • 598
  • 1
  • 5
  • 15
0
votes
1 answer

SameSite Update Chrom. Console shows not "lax" for unset samesite values

With the new Chrome Release the following Change will occur: Treats cookies as SameSite=Lax by default. https://learn.microsoft.com/en-us/aspnet/samesite/system-web-samesite I downloaded the Chrome Beta v.81 which should already use this…
sampa
  • 535
  • 4
  • 27
0
votes
1 answer

How do I exclude SameSite attribute in .NET 4.5.2 web app

I have a .NET 4.5.2 web app in which I need to pass an authentication cookie in a cross-site context. I am setting SameSite=None, by appending it to the Path FormsAuthentication.SetAuthCookie(myUser, false, $"{FormsAuthentication.FormsCookiePath};…
makasan
  • 1
  • 1
0
votes
1 answer

IIS outbound rewite rule with condition based on the request (web.config)

I currently have the problem that IIS serves all my cookies with the sameSite=lax attribute after an update of .Net Framework on Windows Server (https://support.microsoft.com/en-us/help/4524419/kb4524419) The problem is similar to how SameSite…
mitras2
  • 51
  • 1
  • 6
0
votes
1 answer

update latest Security patch leads my ASP.NET system auto logout

Operation system of my server is Windows Server 2008 R2 SP1, and i updated latest security patch - KB4533012 on it, after the update, my ASP.NET system has a feature that post a request to a Flex grid, then display the swf grid in my aspx page, then…
yuc
  • 13
  • 5