From a799be79413b17e0ccace09dcfaed60daa2b4ad5 Mon Sep 17 00:00:00 2001 From: Daven Quinn Date: Fri, 18 Oct 2024 22:25:42 -0500 Subject: [PATCH] Try adjusting cookie provision again --- api/routes/security.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/api/routes/security.py b/api/routes/security.py index 0eabc78..aa4d27e 100644 --- a/api/routes/security.py +++ b/api/routes/security.py @@ -305,21 +305,21 @@ async def redirect_callback(code: str, state: Optional[str] = None): # Set the same cookie for localhost if we're doing a redirect to another domain (this is likely a dev mode request) # We may want to restrict this to development environments in the future... - if redirect_domain not in [domain, ""]: - response.set_cookie( - access_token_key, - f"Bearer {access_token}", - domain="localhost", - httponly=True, - samesite="lax", - ) - else: - response.set_cookie( - access_token_key, - f"Bearer {access_token}", - httponly=True, - samesite="lax", - ) + # if redirect_domain not in [domain, ""]: + # response.set_cookie( + # access_token_key, + # f"Bearer {access_token}", + # domain="localhost", + # httponly=True, + # samesite="lax", + # ) + # else: + response.set_cookie( + access_token_key, + f"Bearer {access_token}", + httponly=True, + samesite="lax", + ) return response