diff --git a/common/etc/nginx/templates/default.conf.template b/common/etc/nginx/templates/default.conf.template index 1d558bd0..217e5b00 100644 --- a/common/etc/nginx/templates/default.conf.template +++ b/common/etc/nginx/templates/default.conf.template @@ -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; }