Update CORS setting

This commit is contained in:
Aarni Halinen
2022-07-21 23:37:32 +03:00
parent eb22368055
commit acba330694
+3 -1
View File
@@ -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"