We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4aa032d commit 8e8091aCopy full SHA for 8e8091a
apimanager/apimanager/settings.py
@@ -44,6 +44,7 @@
44
'django.contrib.sessions',
45
'django.contrib.messages',
46
'django.contrib.staticfiles',
47
+ 'corsheaders',
48
'bootstrap',
49
'bootstrap_datepicker_plus',
50
'mathfilters',
@@ -86,6 +87,7 @@
86
87
'django.contrib.messages.middleware.MessageMiddleware',
88
'django.middleware.clickjacking.XFrameOptionsMiddleware',
89
# 'django.middleware.cache.FetchFromCacheMiddleware',
90
+ 'corsheaders.middleware.CorsMiddleware'
91
]
92
93
#cache the view page, we set 60s = 1m,
requirements.txt
@@ -10,4 +10,5 @@ matplotlib
10
django-bootstrap-datepicker-plus
11
django-mathfilters
12
django-bootstrap
13
-django-csp
+django-csp
14
+django-cors-headers
0 commit comments