From b47dd68231ed2ad65928e819c73e4a4d7c9a21f0 Mon Sep 17 00:00:00 2001 From: ashish-bazad Date: Wed, 12 Jun 2024 21:43:03 +0530 Subject: [PATCH] azure hosting --- backend/deployment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/deployment.py b/backend/deployment.py index 4e6956c..b2ffb5d 100644 --- a/backend/deployment.py +++ b/backend/deployment.py @@ -4,8 +4,8 @@ SECRET_KEY = os.environ.get('SECRET') ALLOWED_HOSTS = [os.environ.get('WEBSITE_HOSTNAME')] -CSRF_TRUSTED_ORIGINS = ['https://' + os.environ.get('WEBSITE_HOSTNAME')] -DEBUG = False +CSRF_TRUSTED_ORIGINS = ['https://' + os.environ.get('WEBSITE_HOSTNAME'), 'http://' + os.environ.get('WEBSITE_HOSTNAME')] +DEBUG = True MIDDLEWARE = [ 'corsheaders.middleware.CorsMiddleware',