cookie options not being set
ngleadall opened this issue · comments
Nicholas Gleadall commented
Hi,
The sameSite and secure cookie options are not being set. I am creating the session as shown below.
I know that the docs suggest a flat object should be applied, however when I remove the 'cookie' key from this no 'set-cookie' header is applied to the response header.
Any help would be appreciated!
cookieSession({
// Use the config service setup above to get the cookie key
name: 'session',
keys: [this.configService.get('COOKIE_KEY')],
cookie: {
maxAge: 30 * 24 * 60 * 60 * 1000, // 30 days
secure: true,
sameSite: 'none',
},
}),