Answer the question
In order to leave comments, you need to log in
How to set cookies correctly?
I put it this way - I look through the devtools,
there is nothing
Answer the question
In order to leave comments, you need to log in
Judging from the screenshot in the comments, the author is trying to use cookies in the file:// protocol.
They only work in the http / https protocols or in chrome with a special --enable-file-cookies flag.
Run the code through the local server and everything will be ok
https://developer.mozilla.org/ru/docs/Web/API/Docu...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question