diff options
Diffstat (limited to 'backend/main.py')
| -rw-r--r-- | backend/main.py | 2 |
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 |
