aboutsummaryrefslogtreecommitdiffstats
path: root/backend/routes
diff options
context:
space:
mode:
Diffstat (limited to 'backend/routes')
-rw-r--r--backend/routes/auth/authorize.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/routes/auth/authorize.py b/backend/routes/auth/authorize.py
index ce7b8bd..6a27c65 100644
--- a/backend/routes/auth/authorize.py
+++ b/backend/routes/auth/authorize.py
@@ -77,7 +77,8 @@ async def set_response_token(
expiry: int
) -> None:
"""Helper that handles logic for updating a token in a set-cookie response."""
- stripped_domain = request_url.scheme + request_url.netloc
+ stripped_domain = f"{request_url.scheme}://{request_url.netloc}/"
+
if origin_url == constants.PRODUCTION_URL:
domain = stripped_domain
samesite = "strict"