The following approach works 100% fine when I deploy to Heroku, but doesn't work on localhost. I have my nodeJS server running on port localhost:8080 and my angular app running on localhost:4200. I set all my Access-Control headers appropriately. Is it a cross domain issue, having my session originate from port 8080 and using it on 4200?
app.use(session({
store: new RedisStore(options),
secret: 'starbucks-sucks',
cookie: {
secure: false,
maxAge: 300000
},
resave: false,
saveUninitialized: false
}));