mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
document CORS middleware
This commit is contained in:
parent
f60857013e
commit
586c3e4583
13
docs/cors.md
Normal file
13
docs/cors.md
Normal 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.
|
||||
Loading…
x
Reference in New Issue
Block a user