Return auth cookie valid for whole main domain.

This commit is contained in:
orhtej2 2024-03-26 01:04:43 +01:00
parent 76be0ee42c
commit 10c6c807bf

View file

@ -199,6 +199,7 @@ class Authenticator(BaseAuthenticator):
path="/",
# Doesn't this cause issues ? May cause issue if the portal is on different subdomain than the portal API ? Will surely cause issue for development similar to CORS ?
samesite="strict" if not is_dev else None,
domain=f".{request.get_header('host')}",
)
# Create the session file (expiration mechanism)