From 4aa032d7fab7420d7425509171d4db6e2a6864ed Mon Sep 17 00:00:00 2001 From: karmaking Date: Fri, 10 Jan 2025 16:25:28 +0100 Subject: [PATCH] add CORS whitelist --- .github/local_settings_container.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/local_settings_container.py b/.github/local_settings_container.py index 60c9ba3..93ee0d4 100644 --- a/.github/local_settings_container.py +++ b/.github/local_settings_container.py @@ -22,6 +22,8 @@ if os.getenv('ALLOWED_HOSTS'): ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS').split(',') if os.getenv('CSRF_TRUSTED_ORIGINS'): CSRF_TRUSTED_ORIGINS = os.getenv('CSRF_TRUSTED_ORIGINS').split(',') +if os.getenv('CORS_ORIGIN_WHITELIST'): + CORS_ORIGIN_WHITELIST = os.getenv('CORS_ORIGIN_WHITELIST').split(',') BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DATABASES = { 'default': {