From c7c20ca647bb6a617abb98c88c74304e8e260927 Mon Sep 17 00:00:00 2001 From: gd-codes <45459312+gd-codes@users.noreply.github.com> Date: Thu, 14 Dec 2023 16:50:40 +0530 Subject: [PATCH] Fix admin panel CSRF error --- src/web_main/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/web_main/settings.py b/src/web_main/settings.py index bbc13cd..90281e3 100644 --- a/src/web_main/settings.py +++ b/src/web_main/settings.py @@ -31,6 +31,8 @@ ALLOWED_HOSTS = ["stac.iitmandi.co.in", "127.0.0.1", "localhost"] +CSRF_TRUSTED_ORIGINS = ["http://localhost", "https://stac.iitmandi.co.in"] + # Application definition INSTALLED_APPS = [