Answer the question
In order to leave comments, you need to log in
How to write two identical parameters in NodeJS server response headers?
I want to create cookies for the user, so I send him the Set-cookie header:
Great, one cookie is set, but how can I set two cookies in one response? When trying to write something like:res.setHeader('Set-cookie', 'a=4');
res.setHeader('Set-cookie', 'a=4');
res.setHeader('Set-cookie', 'b=5');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question