Answer the question
In order to leave comments, you need to log in
Why doesn't the browser save cookies?
In a non-cunning way, I send cookies from the server:
res.cookie('id', doc._id, {
maxAge: 2592000,
path: '/',
HttpOnly: true,
secure: true });
res.send({
success: true,
result: { id: doc._id }
})
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