CORS Support

Added the django-cors-headers app and middleware to make CORS possible.
This commit is contained in:
Tyler Cross
2018-11-18 21:25:21 -05:00
committed by Ryan Petrello
parent d2fa5cc182
commit 0da0a8e67b
4 changed files with 5 additions and 0 deletions

View File

@@ -252,6 +252,7 @@ TEMPLATES = [
MIDDLEWARE_CLASSES = ( # NOQA
'awx.main.middleware.TimingMiddleware',
'awx.main.middleware.MigrationRanCheckMiddleware',
'corsheaders.middleware.CorsMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
@@ -284,6 +285,7 @@ INSTALLED_APPS = (
'polymorphic',
'taggit',
'social_django',
'corsheaders',
'awx.conf',
'awx.main',
'awx.api',