From 0093d96da4e12195f97010089a50dbb5164fb77d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 27 Sep 2022 13:28:28 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Downgrade=20SameSite=20setting?= =?UTF-8?q?=20to=20Lax?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Strict was causing issues for users who navigate to their OctoPrint instance using a custom start page, since `SameSite=Strict` would suppress all cookies in that case, forcing you to login again. --- src/octoprint/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/settings.py b/src/octoprint/settings.py index 1735fcb41..fa4999fe3 100644 --- a/src/octoprint/settings.py +++ b/src/octoprint/settings.py @@ -228,7 +228,7 @@ default_settings = { "preemptiveCache": {"exceptions": [], "until": 7}, "ipCheck": {"enabled": True, "trustedSubnets": []}, "allowFraming": False, - "cookies": {"secure": False, "samesite": "strict"}, + "cookies": {"secure": False, "samesite": "lax"}, }, "webcam": { "webcamEnabled": True,