My site gets a cookie error in the console:

curiouswebster
curiouswebster used Ask the Experts™
on
My site gets a cookie error in the console:

I use a plug-in called:
http://3dflipbook.net/


I decided to Inspect the page and found these errors...

===
query-migrate.min.js?ver=1.4.1:2

JQMIGRATE: Migrate is installed, version 1.4.1

A cookie associated with a cross-site resource at http://www.pagespeed-mod.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 https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
pdf.worker.js:1

The provided value 'moz-chunked-arraybuffer' is not a valid enum value of type XMLHttpRequestResponseType.
e @ pdf.worker.js:1

====

This is a new site, but I am not promoting it yet. I have no Terms of Use, but plan to do that. I guess what I can conclude from this error is that the plug-in (mention above) uses a cookie.

What shall I do about this error? What does it mean?

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hi,

these are not errors but warnings

Same Site cookie flag is a way to set cookies for security.
There are 3 possibles value, LAX is the one I use fo my custom cookies

Lax

samesite=Lax, that cookie will not be passed for any cross-domain requests unless it is a regular link to the target site.
Other methods like POST and PUTand XHR requests will not contain this cookie.

Strict

samesite=Strict, that cookie will not be sent for any cross-domain requests, even if it is regular link to the target site, the cookie will not be sent.


None Experimental

More info
https://web.dev/samesite-cookies-explained/
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie

Note Same-site cookies is compatible with PHP 7.3+
https://php.watch/articles/PHP-Samesite-cookies
PHP.ini
session.cookie_samesite=Lax

Open in new window


PHP custom cookie
setcookie('cookie_name', 'cookie_value', ['samesite' => 'Lax']);

Open in new window

Ref https://www.php.net/manual/en/function.setcookie.php
curiouswebsterSoftware Engineer

Author

Commented:
thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial