diff --git a/default.conf b/default.conf index 448b5f5..fd41d16 100644 --- a/default.conf +++ b/default.conf @@ -50,6 +50,12 @@ server { proxy_pass http://hub-admin-backend-service:8005/; } location /feedback/ { + if ($request_method = OPTIONS) { + add_header Access-Control-Allow-Origin $http_origin always; + add_header Access-Control-Allow-Credentials true always; + add_header Access-Control-Allow-Headers content-type always; + return 200; + } proxy_set_header Host $host; proxy_pass http://10.6.0.31:8006/; }