This repository was archived by the owner on Dec 5, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ django-appconf==1.0.1
1010django-bootstrap-form == 3.2
1111django-celery == 3.1.17
1212django-contrib-comments == 1.7.1
13+ django-cors-headers == 2.4.1
1314django-model-utils == 2.4
1415django-multiupload == 0.5
1516django-redis-cache == 1.6.5
Original file line number Diff line number Diff line change 1- python-2.7.15
1+ python-2.7.17
Original file line number Diff line number Diff line change 8181SECRET_KEY = os .environ .get ("SECRET_KEY" , "notasecret" )
8282
8383MIDDLEWARE_CLASSES = [
84+ "corsheaders.middleware.CorsMiddleware" ,
8485 "reversion.middleware.RevisionMiddleware" ,
8586 "django.contrib.sessions.middleware.SessionMiddleware" ,
8687 "django.middleware.common.CommonMiddleware" ,
149150 "rest_framework" ,
150151 "django_comments" ,
151152 "taggit" ,
153+ "corsheaders" ,
152154
153155 # project
154156 "td" ,
268270 }
269271]
270272
273+ # Added RJH Mar2020 for django-cors-headers package
274+ # NOTE: We are using django-cors-headers 2.4.1 to be compatible with Django 1.9
275+ # and it doesn't specify the URI scheme (https://) in the whitelist.
276+ CORS_ORIGIN_WHITELIST = [
277+ "door43.org" ,
278+ "dev.door43.org" ,
279+ ]
280+
271281
272282import sentry_sdk
273283from sentry_sdk .integrations .celery import CeleryIntegration
You can’t perform that action at this time.
0 commit comments