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

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -