Repos / pytaku / 92973382ec
commit 92973382ec9de1ee001ba9068cb205144c5871ab
Author: Bùi Thành Nhân <hi@imnhan.com>
Date: Thu Jan 21 19:49:28 2021 +0700
get rid of browser's SameSite cookie warning
oopsie
diff --git a/pyproject.toml b/pyproject.toml
index 0c7b27f..70e0a4f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pytaku"
-version = "0.3.30"
+version = "0.3.31"
description = "Self-hostable web-based manga reader"
authors = ["Bùi Thành Nhân <hi@imnhan.com>"]
license = "AGPL-3.0-only"
diff --git a/src/pytaku/main.py b/src/pytaku/main.py
index 51c7238..25bec95 100644
--- a/src/pytaku/main.py
+++ b/src/pytaku/main.py
@@ -361,7 +361,7 @@ def api_logout():
if num_deleted != 1:
return jsonify({"message": "Invalid token."}), 401
resp = make_response("{}", 200)
- resp.set_cookie("token", "", expires=0)
+ resp.set_cookie("token", "", expires=0, samesite="Strict")
return resp