add CORS to headers
This commit is contained in:
parent
991b41d05d
commit
c5f39ca39e
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -37,11 +37,13 @@ INSTALLED_APPS = [
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
'magazine'
|
||||
'magazine',
|
||||
'corsheaders'
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
'django.middleware.security.SecurityMiddleware',
|
||||
'corsheaders.middleware.CorsMiddleware',
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
'django.middleware.csrf.CsrfViewMiddleware',
|
||||
@ -123,3 +125,5 @@ STATICFILES_DIRS = [
|
||||
]
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
CORS_ORIGIN_ALLOW_ALL = True
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user