Closed cceyda closed 3 years ago
Should be doable with cookie-domain depending on versions you currently use.
Ref: https://github.com/tarent/loginsrv/issues/102
I'll try to add an example to the doc on the main page this weekend.
Hi @cceyda, your backend that creates the jwt cookie neet to set its domain to domain.com
. In this way, the cookie will be valid for all subdomains of domain.com
.
Thank you~ I will close this now.
[with caddy-plugin] I want to be able to access
y.domain.com
andx.domain.com
with the same token. My use case is; I have some static files aty.domain.com
that are being loaded insidex.domain.com
. What would be the correct/secure setup for this? I'm guessing I might be able to set this up using the redirect_host_file, but have no idea how? or maybe with this PR ?My current settings: