Redefine options per request
JavoByte opened this issue · comments
Javier E Lávida commented
Hi.
I'm currently developing an app which is accessible from multiple domains. Meaning, the
set-cookie headers should be able to be set to multiple domains. The problem I am facing is that the cookie must be readable by multiple subdomains. That's why I had to set the domain option to something like .example.com
so it could be accesible from any subdomain. However, trying to scale to for example .another-example.com
is not possible since the domain option was already set when server was started.
Is there any way to modify this domain option per request?