summaryrefslogtreecommitdiff
path: root/backend/main.py
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2025-12-29 22:24:32 +0800
committeraltaf-creator <dev@altafcreator.com>2025-12-29 22:24:32 +0800
commit3a6eb1e82a6a7a826a681f135aedf43bfd5f97dc (patch)
treecae5fe792604bd9379bfcecdf5c7c367832fa815 /backend/main.py
parent88508381f52be607093382d7938c27a85b2c15ef (diff)
HUH??????
Diffstat (limited to 'backend/main.py')
-rw-r--r--backend/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/main.py b/backend/main.py
index f52b91c..37a8003 100644
--- a/backend/main.py
+++ b/backend/main.py
@@ -456,6 +456,6 @@ def uri_to_information(data: InformationRequestData, response: fastapi.Response,
# --- subscribe
@app.post("/notif_subscribe")
def notif_subscribe(data: notif.PushSubscriptionData, response: fastapi.Response):
- endpoint = notif.subscribe(data)[1:-1]
- response.set_cookie(key="subscription_endpoint", value=endpoint, secure=True, max_age=COOKIE_MAX_AGE)#, domain="backend.laundryweb.altafcreator.com", samesite="none", secure=True)
+ endpoint = notif.subscribe(data)
+ response.set_cookie(key="sub_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