From 8ccc95368aff70aa9603fbbc659e1465785050a8 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Wed, 21 Jan 2026 20:45:47 +0800 Subject: cookie aint setting anymore what the FUCK MAN --- backend/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/main.py') diff --git a/backend/main.py b/backend/main.py index cf3edb5..cbd7b10 100644 --- a/backend/main.py +++ b/backend/main.py @@ -505,7 +505,7 @@ def admin_login(data: PlaintextPasswordData, response: fastapi.Response): auth_cookie_str = secrets.token_hex(32) AUTH_MAX_AGE = 60 * 10 # 10 minutes - response.set_cookie(key="admin_auth", value=auth_cookie_str, secure=True, max_age=AUTH_MAX_AGE) + response.set_cookie(key="admin_auth", value=auth_cookie_str, secure=True, max_age=AUTH_MAX_AGE, domain="backend.laundryweb.altafcreator.com", samesite="none") cursor.execute("""INSERT INTO admin_cookies (cookie) VALUES (?);""", (auth_cookie_str,)) conn.commit() cursor.execute("SELECT * FROM admin_cookies") -- cgit v1.2.3