D
D
d11L2021-04-24 23:40:55
JavaScript
d11L, 2021-04-24 23:40:55

Is it possible to remove the warning about SameSite (they pop up in Mozilla Firefox), the link to the site is nds.com.ru?

Link to the site - nds.com.ru
Please tell me, is it possible to remove the warning through js?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
raxweb, 2021-04-26
@d11L

It is necessary to add in the cookie creation line (line 130):
SameSite=Lax;
The entire line will be like this:

document.cookie = a + "=" + c + b + "; path=/; SameSite=Lax;" ;

The warning was issued because the site nds.com.ru works without https.
If there was https, then one could add "SameSite=None; Secure ;"
On a site without https, it works without warning if you add "SameSite=Lax;".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question