diff --git a/config/nginx/default.conf b/config/nginx/default.conf index 384b09f697738297e1fa9cf634934fc0749903e1..c432b9e9654fd26c586fad9c4c86d83d4ef4c79f 100644 --- a/config/nginx/default.conf +++ b/config/nginx/default.conf @@ -38,7 +38,16 @@ server { } include conf.d/api-proxy.conf; proxy_pass http://localhost:8092; - + + } + location /api/projects { + if ($request_method = GET) { + add_header Access-Control-Allow-Origin *; + add_header Access-Control-Expose-Headers Etag,Link,Content-Type; + } + include conf.d/api-proxy.conf; + proxy_pass http://localhost:8092; + } }