From 6ce5c90308cb6fd36b419e36515c149ac30bc7bc Mon Sep 17 00:00:00 2001 From: kovacspe Date: Sun, 25 Aug 2024 22:16:47 +0200 Subject: [PATCH] Opraveny CSRF error pri lokalnom spusteni --- webstrom/settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webstrom/settings.py b/webstrom/settings.py index 5ffb1de..1811890 100644 --- a/webstrom/settings.py +++ b/webstrom/settings.py @@ -14,6 +14,11 @@ ALLOWED_HOSTS = [] +CSRF_TRUSTED_ORIGINS = [ + 'http://localhost:3000', + 'https://localhost:3000' +] + SITE_ID = 1 # Application definition