summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--awx/settings/development.py1
-rw-r--r--tools/docker-compose/ansible/roles/sources/templates/nginx.locations.conf.j21
2 files changed, 1 insertions, 1 deletions
diff --git a/awx/settings/development.py b/awx/settings/development.py
index e518c1204f..68fa75ceb8 100644
--- a/awx/settings/development.py
+++ b/awx/settings/development.py
@@ -74,7 +74,6 @@ AWX_CALLBACK_PROFILE = True
AWX_DISABLE_TASK_MANAGERS = False
# Needed for launching runserver in debug mode
-CSRF_TRUSTED_ORIGINS = ["https://localhost:8043"]
# ======================!!!!!!! FOR DEVELOPMENT ONLY !!!!!!!=================================
# Store a snapshot of default settings at this point before loading any
diff --git a/tools/docker-compose/ansible/roles/sources/templates/nginx.locations.conf.j2 b/tools/docker-compose/ansible/roles/sources/templates/nginx.locations.conf.j2
index 404be4ade2..5e79c1bfdd 100644
--- a/tools/docker-compose/ansible/roles/sources/templates/nginx.locations.conf.j2
+++ b/tools/docker-compose/ansible/roles/sources/templates/nginx.locations.conf.j2
@@ -46,4 +46,5 @@ location @fallback {
# Add trailing / if missing
rewrite ^(.*)$http_host(.*[^/])$ $1$http_host$2/ permanent;
proxy_pass http://runserver;
+ proxy_set_header Host $http_host;
}