Skip to content

Commit

Permalink
To make the api work with the Swagger editor cors headers need settin…
Browse files Browse the repository at this point in the history
…g appropriately.

This won't affect api access unless done via browser.
  • Loading branch information
cooperaj committed Dec 3, 2024
1 parent de1573a commit 9c999ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions service-api/docker/web/etc/confd/templates/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ server {
gzip_vary on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml text/javascript image/svg+xml;

add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Headers' 'User-Token' always;

location / {
root /web;
try_files $uri /index.php$is_args$args;
Expand Down

0 comments on commit 9c999ad

Please sign in to comment.