Express JS/ Node JS : Browsers are not setting cookie when secure=true, sameSite: 'none' Express JS/ Node JS : Browsers are not setting cookie when secure=true, sameSite: 'none' express express

Express JS/ Node JS : Browsers are not setting cookie when secure=true, sameSite: 'none'


The problem is not with expres-session, It does its job.The browsers are not allowing cookies when the response comes from a 3rd party domain.


if you are looking for a workaround try this npm package :should-send-same-site-nonehttps://www.npmjs.com/package/should-send-same-site-none


to be clear, the browser is not rejecting the cookies. Instead the cookies are stored in the name of the 3rd party domain name from which the response is sent.

It works perfectly fine when hosting locally since the request and the response would be from the same domain (localhost)