From 431df4636f8382ff7c83af262021d133cb1d64d3 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Tue, 16 Jul 2024 15:40:40 +0100 Subject: [PATCH] fix: remove CORS origins header from nginx (set by Rails?) --- nginx/templates/osm-dev.conf.template | 3 --- nginx/templates/osm.conf.template | 1 - 2 files changed, 4 deletions(-) diff --git a/nginx/templates/osm-dev.conf.template b/nginx/templates/osm-dev.conf.template index 81fa162..4264c72 100644 --- a/nginx/templates/osm-dev.conf.template +++ b/nginx/templates/osm-dev.conf.template @@ -10,9 +10,6 @@ server { client_max_body_size 10M; - # Response headers - add_header Access-Control-Allow-Origin *; - location / { # Requests headers proxy_set_header Host $http_host; diff --git a/nginx/templates/osm.conf.template b/nginx/templates/osm.conf.template index 267584e..5613eaf 100644 --- a/nginx/templates/osm.conf.template +++ b/nginx/templates/osm.conf.template @@ -23,7 +23,6 @@ server { client_max_body_size 10M; add_header 'Content-Security-Policy' 'upgrade-insecure-requests'; - add_header Access-Control-Allow-Origin *; location / { # Requests headers