From acba330694d40b148f3dd7043074a271657d7a42 Mon Sep 17 00:00:00 2001 From: Aarni Halinen Date: Thu, 21 Jul 2022 23:37:32 +0300 Subject: [PATCH] Update CORS setting --- sikweb/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sikweb/base.py b/sikweb/base.py index 59495f5..ad0c37d 100644 --- a/sikweb/base.py +++ b/sikweb/base.py @@ -85,7 +85,9 @@ LOGGING = { # Application definition IMPORT_EXPORT_USE_TRANSACTIONS = True TEST_RUNNER = "django_nose.NoseTestSuiteRunner" -CORS_ORIGIN_ALLOW_ALL = True +# Could be replaced with CORS_ALLOWED_ORIGINS list. +# See (check correct package version in the link) https://github.com/adamchainz/django-cors-headers/tree/3.7.0#configuration +CORS_ALLOW_ALL_ORIGINS = True ROOT_URLCONF = "sikweb.urls" WSGI_APPLICATION = "sikweb.wsgi.application"