document CORS middleware

This commit is contained in:
Ryan Petrello 2019-04-26 10:59:09 -04:00
parent f60857013e
commit 586c3e4583
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

13
docs/cors.md Normal file
View File

@ -0,0 +1,13 @@
## CORS Support
AWX supports custom CORS headers via the Django CORS Middleware
(https://github.com/ottoyiu/django-cors-headers)
To define CORS-specific settings, add them to ``/etc/tower/conf.d/cors.py``:
CORS_ORIGIN_WHITELIST = (
'hostname.example.com',
'127.0.0.1:9000'
)
...and restart all AWX services for changes to take effect.