mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 02:47:35 -02:30
CORS Support
Added the django-cors-headers app and middleware to make CORS possible.
This commit is contained in:
committed by
Ryan Petrello
parent
d2fa5cc182
commit
0da0a8e67b
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user