aboutsummaryrefslogtreecommitdiffstats
path: root/backend/routes/forms
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-03-07 00:37:42 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-03-07 00:37:42 +0300
commit8811959c6f13cdccb56d4fc72c1d9027e66d63d5 (patch)
tree6b4b323dfc90965213492941743a8ec493b51328 /backend/routes/forms
parentMerge pull request #68 from python-discord/dynamic-token-origin (diff)
Fixes Domain URL On Token Cookie
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'backend/routes/forms')
-rw-r--r--backend/routes/forms/submit.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/routes/forms/submit.py b/backend/routes/forms/submit.py
index 975307b..ae98cfb 100644
--- a/backend/routes/forms/submit.py
+++ b/backend/routes/forms/submit.py
@@ -77,7 +77,9 @@ class SubmitForm(Route):
origin = request.headers.get("origin")
expiry_seconds = (expiry - datetime.datetime.now()).seconds
- await set_response_token(response, origin, request.user.token, expiry_seconds)
+ await set_response_token(
+ response, origin, request.url, request.user.token, expiry_seconds
+ )
except httpx.HTTPStatusError:
pass