From 5fb05f0b7ea4dfd12fd1bbc077bb6d6a972fa480 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Mon, 1 Feb 2021 12:42:29 +0100 Subject: Add CORS for our load testing frontend --- app/jitsi/config/nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/jitsi/config') diff --git a/app/jitsi/config/nginx.conf b/app/jitsi/config/nginx.conf index 2795644..12cca4a 100644 --- a/app/jitsi/config/nginx.conf +++ b/app/jitsi/config/nginx.conf @@ -32,6 +32,10 @@ http { } location /http-bind { + # We add CORS to use a different frontend which is useful for load testing as we do not want to advertise too much our URL + add_header 'Access-Control-Allow-Headers' 'content-type'; + add_header 'Access-Control-Allow-Methods' 'GET,POST,PUT,DELETE,OPTIONS'; + add_header 'Access-Control-Allow-Origin' '*'; proxy_pass http://{{ env "NOMAD_ADDR_bosh_port" }}/http-bind; proxy_set_header X-Forwarded-For \$remote_addr; proxy_set_header Host \$http_host; -- cgit v1.2.3