summaryrefslogtreecommitdiff
path: root/backend/main.py
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2025-12-29 22:21:12 +0800
committeraltaf-creator <dev@altafcreator.com>2025-12-29 22:21:12 +0800
commit3dd129a1a4f5c8ac1e8a6e3150aa862db45eab17 (patch)
tree19f87c98c11d34d9132c27772e069a3f48b9e450 /backend/main.py
parent4d6d576e3a3653db50090fab627d19470a39fb8b (diff)
this should not work but it looks like it may work
Diffstat (limited to 'backend/main.py')
-rw-r--r--backend/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/main.py b/backend/main.py
index db55266..7e88d21 100644
--- a/backend/main.py
+++ b/backend/main.py
@@ -457,5 +457,5 @@ def uri_to_information(data: InformationRequestData, response: fastapi.Response,
@app.post("/notif_subscribe")
def notif_subscribe(data: notif.PushSubscriptionData, response: fastapi.Response):
endpoint = notif.subscribe(data)
- response.set_cookie("subscription_endpoint", endpoint)#, domain="backend.laundryweb.altafcreator.com", samesite="none", secure=True)
+ response.set_cookie(key="subscription_endpoint", value=endpoint, secure=True, max_age=COOKIE_MAX_AGE))#, domain="backend.laundryweb.altafcreator.com", samesite="none", secure=True)
response.status_code = fastapi.status.HTTP_200_OK