mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
Alternative for pikvm/kvmd#138: httponly=True, samesite=Strict
We don't use secure=True because there is a use case with disabled HTTPS. Thanks @ssza
This commit is contained in:
parent
98ff56e190
commit
4457187a86
@ -167,7 +167,7 @@ def make_json_response(
|
||||
)
|
||||
if set_cookies:
|
||||
for (key, value) in set_cookies.items():
|
||||
response.set_cookie(key, value)
|
||||
response.set_cookie(key, value, httponly=True, samesite="Strict")
|
||||
return response
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user