-
-
Notifications
You must be signed in to change notification settings - Fork 247
Description
In order to easy frontend development, I want to let frontend developers plug their local frontend to a remote server (not in prod of course). That remote server thus needs to set the cookie for its domain and for localhost so that the local frontend can authenticate and access the cookie. Using same site is not enough here because I need ot explicitly access the cookie in JS to get the csrf token.
Set the access cookie for multiple domains does not seem to be doable right now though because the domain is passed via environment variables, so not easily changeable at runtime.
Is there a way to achieve this currently ? Otherwise, it would be nice to have an optional arg in set_access_cookies to pass a domain that would override the one from JWT_COOKIE_DOMAIN.
Thanks !