From 55a8e43f708704dd7cb15788b03a98d851e8b0ef Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Mon, 29 Dec 2025 22:50:29 +0800 Subject: This does not make any sense. --- backend/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'backend/main.py') diff --git a/backend/main.py b/backend/main.py index 72191a7..00cbd8c 100644 --- a/backend/main.py +++ b/backend/main.py @@ -34,7 +34,8 @@ origins = [ "http://127.0.0.1", "http://127.0.0.1:998", "http://127.0.0.1:5173", - "https://laundryweb.altafcreator.com" + "https://laundryweb.altafcreator.com", + "https://backend.laundryweb.altafcreator.com" ] app.add_middleware( @@ -457,6 +458,6 @@ def uri_to_information(data: InformationRequestData, response: fastapi.Response, @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, max_age=COOKIE_MAX_AGE, domain=".laundryweb.altafcreator.com", samesite="none", secure=True) + response.set_cookie(key="subscription_endpoint", value=endpoint, max_age=COOKIE_MAX_AGE, domain="laundryweb.altafcreator.com", samesite="none", secure=True, path="/") response.status_code = fastapi.status.HTTP_200_OK return "do i need to return something perhaps" -- cgit v1.2.3