From 00168a41e7ef1ab9a883f22087261a739135ed69 Mon Sep 17 00:00:00 2001 From: pUrGe12 Date: Wed, 26 Nov 2025 16:14:04 +0530 Subject: [PATCH] moving from double quotes to single quotes because that is breaking the fstring --- python/api/csrf_token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/api/csrf_token.py b/python/api/csrf_token.py index 37bb8453a..0e46a4d46 100644 --- a/python/api/csrf_token.py +++ b/python/api/csrf_token.py @@ -29,7 +29,7 @@ class GetCsrfToken(ApiHandler): if not origin_check["ok"]: return { "ok": False, - "error": f"Origin {self.get_origin_from_request(request)} not allowed when login is disabled. Set login and password or add your URL to ALLOWED_ORIGINS env variable. Currently allowed origins: {",".join(origin_check['allowed_origins'])}", + "error": f"Origin {self.get_origin_from_request(request)} not allowed when login is disabled. Set login and password or add your URL to ALLOWED_ORIGINS env variable. Currently allowed origins: {','.join(origin_check['allowed_origins'])}", } # generate a csrf token if it doesn't exist