File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 41
41
'django.contrib.sessions' ,
42
42
'django.contrib.messages' ,
43
43
'django.contrib.staticfiles' ,
44
+ 'corsheaders' ,
44
45
'main' ,
45
46
'rest_framework' ,
46
47
]
47
48
48
49
MIDDLEWARE = [
50
+ 'corsheaders.middleware.CorsMiddleware' ,
49
51
'django.middleware.security.SecurityMiddleware' ,
50
52
'django.contrib.sessions.middleware.SessionMiddleware' ,
51
53
'django.middleware.common.CommonMiddleware' ,
152
154
153
155
MEDIA_ROOT = os .path .join (BASE_DIR , 'media' )
154
156
MEDIA_URL = '/backend_media/'
157
+
158
+ # CORS settings
159
+
160
+ CORS_ORIGIN_WHITELIST = (
161
+ 'biojs.net' ,
162
+ 'biojs.io' ,
163
+ 'localhost:8080' ,
164
+ '127.0.0.1:9000'
165
+ )
Original file line number Diff line number Diff line change 1
- certifi == 2018.4.16
1
+ certifi
2
2
chardet == 3.0.4
3
3
Django == 1.11.13
4
4
django-redis == 4.9.0
You can’t perform that action at this time.
0 commit comments