T
T
torrentino2021-06-15 20:45:18
JavaScript
torrentino, 2021-06-15 20:45:18

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

2 answer(s)
A
Andrew Hecc, 2021-06-16
@torrentino

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

S
Spartak (Web-StyleStudio), 2021-06-15
@Spartak-2205

https://developer.mozilla.org/ru/docs/Web/API/Docu...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question