From 19496db939ef9185df25bf9aeb98aa455a9de422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 17 Feb 2023 23:06:53 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 27bba77..9d3206d 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -6,7 +6,9 @@ location __PATH__/ { index index.html; - more_set_headers "Access-Control-Allow-Origin: *"; + if ($request_method ~* "(GET|POST)") { + more_set_headers "Access-Control-Allow-Origin: *"; + } location = __PATH__/http-bind { proxy_pass "http://localhost:5290/http-bind";