From 878b1d2bebebb4c780282a853c3a9e3cf7abef23 Mon Sep 17 00:00:00 2001 From: Dhrumil Mistry <56185972+dmdhrumilmistry@users.noreply.github.com> Date: Sat, 12 Aug 2023 15:13:18 +0530 Subject: [PATCH] fix csrf trusted origin issue --- GooglePhish/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GooglePhish/settings.py b/GooglePhish/settings.py index 8962e0f..37cc9a6 100644 --- a/GooglePhish/settings.py +++ b/GooglePhish/settings.py @@ -33,7 +33,7 @@ DEBUG = True if environ.get('DEBUG','False').lower() == 'true' else False ALLOWED_HOSTS = environ.get('ALLOWED_HOSTS', '*').split(',') -CSRF_TRUSTED_ORIGINS_VARIABLE = [origin.strip() for origin in environ.get('CSRF_TRUSTED_ORIGINS','').split(',')] +CSRF_TRUSTED_ORIGINS_VARIABLE = [origin.strip() for origin in environ.get('CSRF_TRUSTED_ORIGINS','https://dmdhrumilmistry.github.io').split(',')] # Application definition