kiran Gopal
kiran Gopal

Reputation: 450

cookies are not getting saved in Browser

I have created a session while user logged in my application. In login request response cookies are coming. But it's not getting saved in cookie store.

Request responce enter image description here

cookie store Can anyone help me on this ?

Regards, Kiran Gopal

Upvotes: 0

Views: 2702

Answers (2)

kiran Gopal
kiran Gopal

Reputation: 450

I have disabled the web security in chrome. Now it's starts working.

chromium-browser --disable-web-security --user-data-dir

Upvotes: 1

Sohel
Sohel

Reputation: 81

If you are using express-session and http server rather than https, then set the secure option for cookie false

app.use(session({
  secret: 'keyboard cat',
  resave: false,
  saveUninitialized: true,
  cookie: { secure: false }
}))

Upvotes: 0

Related Questions