diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-12-29 22:32:48 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-12-29 22:32:48 +0800 |
| commit | 7ef58df58ab79594be08461936665aebe75de797 (patch) | |
| tree | 50f07ef60dbc2a719f31fc94b51bc559723d216f | |
| parent | e3d52d33c9d6817d3ad3df78b732ac9be8bb53c1 (diff) | |
pls work
| -rw-r--r-- | backend/main.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/main.py b/backend/main.py index 48f6ad3..72191a7 100644 --- a/backend/main.py +++ b/backend/main.py @@ -454,9 +454,9 @@ def uri_to_information(data: InformationRequestData, response: fastapi.Response, # --- subscribe -@app.post("/notif_subscribe", response_class=PlainTextResponse) +@app.post("/notifsubscribe", response_class=PlainTextResponse) def notif_subscribe(data: notif.PushSubscriptionData, response: fastapi.Response): 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.set_cookie(key="sub_endpoint", value=endpoint, max_age=COOKIE_MAX_AGE, domain=".laundryweb.altafcreator.com", samesite="none", secure=True) response.status_code = fastapi.status.HTTP_200_OK return "do i need to return something perhaps" |
