I'm using nodejs express app with express-session and firebase.
Firebase hosting configured to be redirected to Firebase functions.
I'm trying to store some data in the session. It works perfectly if I access the app via function url.
However, app doesn't store session cookie when I'm trying to access it via hosting url.
E.g.
http://localhost:5001/my-project/us-central1/app/ - this one sets cookie
and
http://localhost:5000/ - this one not.
My app session configuration is the following:
app.use(
session({
secret: appConfig.appSecret,
name: '__session',
cookie: {
secure: false,
httpOnly: false
}
})
);
How to force firebase hosting to set the cookie?