admin管理员组

文章数量:1332873

I apologize if I'm repeating this question but I've spent over 6 days on this and I'm losing my mind. I can't seem to get that warning to disappear even though I've meticulously tried and retried to add these in my php index before the and tags. I've tried posts on SameSite warning Chrome 77 to use

response.setHeader("Set-Cookie", "HttpOnly;Secure;SameSite=Strict");

as well as posts here How to solve `SameSite` attribute to use

header('Set-Cookie: cross-site-cookie=name; SameSite=None; Secure');

as well as the examples on here .md

and I'm still getting the warning even though everything else hasn't changed. Am I missing something or doing something wrong? Sorry, I suppose it shouldn't be a big deal but I'm so ocd over these warning messages and errors that's popping up I wish they would go away! Thx in advance.

-update- sorry the warning that pops up in console in question is this

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`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at  and .

I apologize if I'm repeating this question but I've spent over 6 days on this and I'm losing my mind. I can't seem to get that warning to disappear even though I've meticulously tried and retried to add these in my php index before the and tags. I've tried posts on SameSite warning Chrome 77 to use

response.setHeader("Set-Cookie", "HttpOnly;Secure;SameSite=Strict");

as well as posts here How to solve `SameSite` attribute to use

header('Set-Cookie: cross-site-cookie=name; SameSite=None; Secure');

as well as the examples on here https://github./GoogleChromeLabs/samesite-examples/blob/master/php.md

and I'm still getting the warning even though everything else hasn't changed. Am I missing something or doing something wrong? Sorry, I suppose it shouldn't be a big deal but I'm so ocd over these warning messages and errors that's popping up I wish they would go away! Thx in advance.

-update- sorry the warning that pops up in console in question is this

A cookie associated with a cross-site resource at http://google./ 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`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus./feature/5088147346030592 and https://www.chromestatus./feature/5633521622188032.
Share Improve this question asked Oct 10, 2019 at 17:51 Fullstack_DeveloperFullstack_Developer 1151 silver badge8 bronze badges 1
  • Anyone? There's gotta be someone out there who knows how to make this warning go away... – Fullstack_Developer Commented Oct 11, 2019 at 17:54
Add a ment  | 

1 Answer 1

Reset to default 6

The warning is specifically for the cookie ing from "google." so you will not be able to affect it. If any of the console warnings refer to domains you control, then you should be following that advice to update your SameSite attributes.

It does mean that you will continue to see these warnings until the affected domains update their cookies, which should be happening over the ing months. The enforcement of this behaviour is not planned until Chrome 80, which will be stable in February. So, no actual site/service functionality should be affected in stable Chrome before then.

本文标签: