From 7e0e9d56f6a84f7d30af4f102ea179397bb56a90 Mon Sep 17 00:00:00 2001 From: "Andrey.Tretjakov" Date: Fri, 4 Aug 2023 13:38:12 +0500 Subject: [PATCH] Add missing CORS headers for 404 status code --- common/etc/nginx/templates/default.conf.template | 4 ++++ 1 file changed, 4 insertions(+) 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; }