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
1 Answer
Reset to default 6The 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.
本文标签:
版权声明:本文标题:javascript - Trying the SameSite attribute fix for the google recaptcha v2 warning on Chrome 77 doesn't seem to be worki 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742314765a2451594.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论