Skip to content

Commit 6c65b9a

Browse files
Fr1z2rdekobon
authored andcommitted
Add missing CORS headers for 404 status code
1 parent 1b4c306 commit 6c65b9a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

common/etc/nginx/templates/default.conf.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@ server {
311311
}
312312

313313
location @error404 {
314+
# The CORS configuration needs to be imported in several places in order for
315+
# it to be applied within different contexts.
316+
include /etc/nginx/conf.d/gateway/cors.conf;
317+
314318
return 404;
315319
}
316320

0 commit comments

Comments
 (0)