1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 06:51:10 +03:00
awx/docs/cors.md

16 lines
361 B
Markdown
Raw Normal View History

2019-04-26 17:59:09 +03:00
## 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``:
2020-05-14 19:54:06 +03:00
```python
CORS_ORIGIN_WHITELIST = (
'hostname.example.com',
'127.0.0.1:9000'
)
```
2019-04-26 17:59:09 +03:00
...and restart all AWX services for changes to take effect.