summaryrefslogtreecommitdiffstats
path: root/docs/cors.md
blob: a8a585aad1390bfc3af5997f29167bb30ec5e98e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
## 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``:

```python
CORS_ALLOWED_ORIGINS = (
    'hostname.example.com',
    '127.0.0.1:9000'
)
```

...and restart all AWX services for changes to take effect.