mirror of
https://github.com/rommapp/romm.git
synced 2026-12-05 23:44:11 +01:00
Make cookie safe
This commit is contained in:
@@ -42,7 +42,9 @@ def login_with_password(
|
||||
data={"sub": user.username}, expires_delta=access_token_expires
|
||||
)
|
||||
|
||||
response.set_cookie("access_token", access_token, httponly=True)
|
||||
response.set_cookie(
|
||||
"access_token", access_token, httponly=True, secure=True, samesite="strict"
|
||||
)
|
||||
|
||||
return user
|
||||
|
||||
|
||||
Reference in New Issue
Block a user