From 5c09226868601f0f56881d43274c469dbf3cadfa Mon Sep 17 00:00:00 2001 From: vickytechkey Date: Sun, 23 Aug 2026 10:02:45 +0530 Subject: [PATCH] Fix CSRF checking by adding CSRF_TRUSTED_ORIGINS --- core/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/settings.py b/core/settings.py index f971e75..58f4204 100644 --- a/core/settings.py +++ b/core/settings.py @@ -28,7 +28,7 @@ SECRET_KEY = 'django-insecure-h3*qqwi%s4(ve^!!27d1sn6gew&4ol0^eh^n*3$aq=p+ht#)6k DEBUG = True ALLOWED_HOSTS = ['*'] - +CSRF_TRUSTED_ORIGINS = ['https://ec2-16-113-57-127.ap-south-2.compute.amazonaws.com:9002', 'https://*.amazonaws.com'] # Application definition