Skip to content

Secure Sessions #275

@lydia-schow

Description

@lydia-schow

Authentication breaks when session.secure: true;.

Possible solution: set trust proxy to true.

if (app.get('env') === 'production') {
  app.set('trust proxy', 1) // trust first proxy
  sess.cookie.secure = true // serve secure cookies
}

https://github.com/expressjs/session

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions