expressjs / expressjs/session

Feature request: Allow Cookie options (at least domain) based on incoming requests

Open
#988 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
6.4k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

We have a service serving multiple tenants with different domain names in the same process.
We'd like to set a domain part in the session cookie based on the incoming request.

We already tried creating multiple middleware instance and calling them in a wrapper middleware based on hostname, but that fails as the used cookie options are not that of the called middleware instance, but that of the last instantiated middleware.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.