Create a cookie from an express server and send it back with the response -


i'm playing , learning bit express i'm doing post specific route data related user , i'm trying create cookie expressjs server , send response. unfortunately nothing happened. i'm testing route postman , it's telling me:

no cookies returned server 

here's how i'm trying

  res.status(200).cookie('rememberme', '1', { expires: new date(date.now() + 900000), httponly: false }).send('cookie sent...?'); 

i'm doing or missing stupid, what's wrong that? ideas please..?

if use older version of postman, 1 runs in browser, able see cookie.

however, new 1 doesn't run in browser anymore, becomes seperate chrome app, doesn't read browser cookies anymore. in order see cookie, need install postman interceptor

enter image description here


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -