summaryrefslogtreecommitdiff
path: root/backend/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/main.py')
-rw-r--r--backend/main.py2
1 files changed, 1 insertions, 1 deletions
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")