S
S
syaslow2020-06-12 00:56:56
HTTP Cookies
syaslow, 2020-06-12 00:56:56

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 }
            })

In the cookies tab, the response from the server contains cookies.
But for some reason, cookies are not recorded in the browser and they are not there.

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