From ac4628dc314f3d25f83ad9362a8687cf8a97ae18 Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Tue, 2 Apr 2024 17:54:29 +0545 Subject: [PATCH] Add cors origin allow_all env variable in settings.py with default set as false --- backend/aiproject/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/aiproject/settings.py b/backend/aiproject/settings.py index 2159d5d0..481231ad 100644 --- a/backend/aiproject/settings.py +++ b/backend/aiproject/settings.py @@ -97,7 +97,7 @@ CORS_ORIGIN_WHITELIST = ALLOWED_ORIGINS -# CORS_ORIGIN_ALLOW_ALL = True +CORS_ORIGIN_ALLOW_ALL = env("CORS_ORIGIN_ALLOW_ALL", default= False) REST_FRAMEWORK = { "DEFAULT_SCHEMA_CLASS": "rest_framework.schemas.coreapi.AutoSchema",