mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
Merge pull request #3767 from ryanpetrello/cors-lite
document CORS middleware Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
commit
ddde669083
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