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 authored and dekobon committed Aug 4, 2023
1 parent 1b4c306 commit 6c65b9a
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 @@ -311,6 +311,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 6c65b9a

Please sign in to comment.