django-cors-headers for cross-domain AJAX

This commit is contained in:
Hugo Roussille 2017-09-13 15:57:57 +02:00
parent 7d16001ee5
commit 4bd2562edf
2 changed files with 3 additions and 0 deletions

View file

@ -91,9 +91,11 @@ INSTALLED_APPS = [
'modelcluster',
'taggit',
'kfet.cms',
'corsheaders',
]
MIDDLEWARE_CLASSES = [
'corsheaders.middleware.CorsMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',

View file

@ -25,6 +25,7 @@ channels==1.1.5
python-dateutil
wagtail==1.10.*
wagtailmenus==2.2.*
django-cors-headers==2.1.0
# Production tools
wheel