I have the following code:
var express = require(\'express\'); var cookieParser = require(\'cookie-parser\'); var http = require(\'http\') var app = express(); a
Change cookie: { secure: true }to cookie: { secure: false }
cookie: { secure: true }
cookie: { secure: false }
using secure flag means that the cookie will be set on Https only.