Skip to content

Commit

Permalink
Add missing CORS headers for 404 status code
Browse files Browse the repository at this point in the history
  • Loading branch information
Fr1z2r committed Aug 4, 2023
1 parent 309053c commit 7e0e9d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/etc/nginx/templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,10 @@ server {
}

location @error404 {
# The CORS configuration needs to be imported in several places in order for
# it to be applied within different contexts.
include /etc/nginx/conf.d/gateway/cors.conf;

return 404;
}

Expand Down

0 comments on commit 7e0e9d5

Please sign in to comment.