Merge pull request 'fix: allow auth cookies over HTTP for reverse proxy setup' (#41) from dev into main
This commit was merged in pull request #41.
This commit is contained in:
@@ -1,3 +1 @@
|
||||
# Dashboard
|
||||
|
||||
CI deploy test after fixing duplicate network issue
|
||||
|
||||
@@ -17,7 +17,9 @@ oauth2_scheme = OAuth2PasswordBearer(tokenUrl="api/auth/login")
|
||||
|
||||
ACCESS_COOKIE_NAME = "nas_access_token"
|
||||
REFRESH_COOKIE_NAME = "nas_refresh_token"
|
||||
COOKIE_SECURE = True
|
||||
# Allow both HTTP and HTTPS by setting secure=False
|
||||
# In production, Caddy terminates TLS and forwards to backend over HTTP
|
||||
COOKIE_SECURE = False
|
||||
COOKIE_SAMESITE = "lax"
|
||||
COOKIE_PATH = "/"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user