mirror of
https://github.com/ansible/awx.git
synced 2026-03-28 22:35:08 -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
|
MIDDLEWARE_CLASSES = ( # NOQA
|
||||||
'awx.main.middleware.TimingMiddleware',
|
'awx.main.middleware.TimingMiddleware',
|
||||||
'awx.main.middleware.MigrationRanCheckMiddleware',
|
'awx.main.middleware.MigrationRanCheckMiddleware',
|
||||||
|
'corsheaders.middleware.CorsMiddleware',
|
||||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
'django.middleware.locale.LocaleMiddleware',
|
'django.middleware.locale.LocaleMiddleware',
|
||||||
'django.middleware.common.CommonMiddleware',
|
'django.middleware.common.CommonMiddleware',
|
||||||
@@ -284,6 +285,7 @@ INSTALLED_APPS = (
|
|||||||
'polymorphic',
|
'polymorphic',
|
||||||
'taggit',
|
'taggit',
|
||||||
'social_django',
|
'social_django',
|
||||||
|
'corsheaders',
|
||||||
'awx.conf',
|
'awx.conf',
|
||||||
'awx.main',
|
'awx.main',
|
||||||
'awx.api',
|
'awx.api',
|
||||||
|
|||||||
1
docs/licenses/django-cors-headers.txt
Normal file
1
docs/licenses/django-cors-headers.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Copyright 2017 Otto Yiu and other contributors
|
||||||
@@ -8,6 +8,7 @@ daphne==1.3.0 # Last before backwards-incompatible channels 2 upgrade
|
|||||||
defusedxml==0.5.0 # py36 support https://github.com/tiran/defusedxml/pull/4
|
defusedxml==0.5.0 # py36 support https://github.com/tiran/defusedxml/pull/4
|
||||||
Django==1.11.16
|
Django==1.11.16
|
||||||
django-auth-ldap==1.7.0
|
django-auth-ldap==1.7.0
|
||||||
|
django-cors-headers==2.4.0
|
||||||
django-crum==0.7.2
|
django-crum==0.7.2
|
||||||
django-extensions==2.0.0
|
django-extensions==2.0.0
|
||||||
django-jsonfield==1.0.1
|
django-jsonfield==1.0.1
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ pyrad==2.1 # via django-radius
|
|||||||
pysocks==1.6.8
|
pysocks==1.6.8
|
||||||
python-dateutil==2.7.2
|
python-dateutil==2.7.2
|
||||||
python-ldap==3.1.0 # via django-auth-ldap
|
python-ldap==3.1.0 # via django-auth-ldap
|
||||||
|
django-cors-headers==2.4.0
|
||||||
python-logstash==0.4.6
|
python-logstash==0.4.6
|
||||||
python-memcached==1.59
|
python-memcached==1.59
|
||||||
python3-openid>=3.0.10 # via social-auth-core
|
python3-openid>=3.0.10 # via social-auth-core
|
||||||
|
|||||||
Reference in New Issue
Block a user