A
A
Artcl2014-03-22 00:03:15
Node.js
Artcl, 2014-03-22 00:03:15

Why cookies are not visible in nodejs headers?

After setting the cookie on the server
res.writeHead(200, {'Set-Cookie': 'mycookie'+ Math.round(Math.random()*100)+'=test;path=/;', 'Content- Type': 'text/plain; charset=utf8', 'Access-Control-Allow-Origin': '*'});
On the client I see that the cookie is coming. In subsequent requests, I look in the request.headers node and there are no cookies.
What is the problem?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question