mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 19:37:47 +01:00
fix: set oauth token secure and samesite per config
This commit is contained in:
@@ -2385,6 +2385,8 @@ async def oauth_callback(provider: str, request: Request, response: Response):
|
||||
key="token",
|
||||
value=jwt_token,
|
||||
httponly=True, # Ensures the cookie is not accessible via JavaScript
|
||||
samesite=WEBUI_SESSION_COOKIE_SAME_SITE,
|
||||
secure=WEBUI_SESSION_COOKIE_SECURE,
|
||||
)
|
||||
|
||||
# Redirect back to the frontend with the JWT token
|
||||
|
||||
Reference in New Issue
Block a user