Merge pull request #3025 from ryanpetrello/django-cors-headers

add Django CORS middleware

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot]
2019-01-18 18:47:14 +00:00
committed by GitHub
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',

View File

@@ -0,0 +1 @@
Copyright 2017 Otto Yiu and other contributors

View File

@@ -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
Django==1.11.16
django-auth-ldap==1.7.0
django-cors-headers==2.4.0
django-crum==0.7.2
django-extensions==2.0.0
django-jsonfield==1.0.1

View File

@@ -78,6 +78,7 @@ pyrad==2.1 # via django-radius
pysocks==1.6.8
python-dateutil==2.7.2
python-ldap==3.1.0 # via django-auth-ldap
django-cors-headers==2.4.0
python-logstash==0.4.6
python-memcached==1.59
python3-openid>=3.0.10 # via social-auth-core