From 586c3e4583d6c1eaddeb5bec710ac394218923b6 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Fri, 26 Apr 2019 10:59:09 -0400 Subject: [PATCH] document CORS middleware --- docs/cors.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docs/cors.md diff --git a/docs/cors.md b/docs/cors.md new file mode 100644 index 000000000000..19879ce44523 --- /dev/null +++ b/docs/cors.md @@ -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.