# Browser console giving SameSite attribute cookies warning

**URL:** <https://forum.hestiacp.com/t/browser-console-giving-samesite-attribute-cookies-warning/1412>\
**Category:** Uncategorized\
**Created:** [August 1, 2020, 9:14pm UTC](https://forum.hestiacp.com/t/browser-console-giving-samesite-attribute-cookies-warning/1412 "2020-08-01T21:14:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nasser](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/n/ad7895/32.png) [@Nasser](https://forum.hestiacp.com/u/Nasser)\
**Post date:** [August 1, 2020, 9:14pm UTC](https://forum.hestiacp.com/t/browser-console-giving-samesite-attribute-cookies-warning/1412/1 "2020-08-01T21:14:01Z")

</div>

Hello,

I’m getting this warning on the browser console for my Wordpress site.

> A cookie associated with a cross-site resource at [https://www.google.com/](https://www.google.com/) 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 [Chrome Platform Status](http://chromestatus.com/feature/5088147346030592) and [Chrome Platform Status](http://chromestatus.com/feature/5633521622188032).

I tried to fix the problem by adding the following codes to the child theme functions.php file, but nothing happened. I believe I am missing something, maybe an code opening or something else since I am not a PHP expert.

> setcookie(‘same-site-cookie’, ‘foo’, [‘samesite’ =\> ‘Lax’]);  
> setcookie(‘cross-site-cookie’, ‘bar’, [‘samesite’ =\> ‘None’, ‘secure’ =\> true]);

> <https://github.com/GoogleChromeLabs/samesite-examples/blob/master/php.md>

Please note that I am running PHP 7.4.

Can you please help my fix this warning.

Thank you.

---

<div class="post-metadata">

**Author:** ![Raphael](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/raphael/32/5217_2.png) [@Raphael](https://forum.hestiacp.com/u/Raphael)\
**Post date:** [August 2, 2020, 6:16am UTC](https://forum.hestiacp.com/t/browser-console-giving-samesite-attribute-cookies-warning/1412/2 "2020-08-02T06:16:25Z")

</div>

Hi

Your issue seems not to be related to hestia, please have a look at this thread, it will guide you to a new forum which should be the right place for your question: [Serverz.net - forum about hosting industry](https://forum.hestiacp.com/t/serverz-net-forum-about-hosting-industry/1312)

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [August 2, 2020, 6:48am UTC](https://forum.hestiacp.com/t/browser-console-giving-samesite-attribute-cookies-warning/1412/3 "2020-08-02T06:48:47Z")

</div>

[https://core.trac.wordpress.org/ticket/37000](https://core.trac.wordpress.org/ticket/37000)

Unless you embed your wordpress in a iframe in an authenticated state it is no issue…

---

<div class="post-metadata">

**Author:** ![Nasser](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/n/ad7895/32.png) [@Nasser](https://forum.hestiacp.com/u/Nasser)\
**Post date:** [August 2, 2020, 10:39am UTC](https://forum.hestiacp.com/t/browser-console-giving-samesite-attribute-cookies-warning/1412/4 "2020-08-02T10:39:36Z")

</div>

Hello ScIT,

Thank you for sharing this thread with me.

[Serverz.net](http://Serverz.net) forum is not open yet. I’ll check the link another time.

I apologize for posting something not related to hestiaCP.

Thanks again.

---

<div class="post-metadata">

**Author:** ![Nasser](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/n/ad7895/32.png) [@Nasser](https://forum.hestiacp.com/u/Nasser)\
**Post date:** [August 2, 2020, 10:47am UTC](https://forum.hestiacp.com/t/browser-console-giving-samesite-attribute-cookies-warning/1412/5 "2020-08-02T10:47:49Z")

</div>

Hi eris,

Thank you for your support.

Its just an annoying warning I was hoping to overcome. Its not affecting the performance nor the styling of the site.
