From 04809f125faa32a84eb3da075b5574d0e4fb6ae1 Mon Sep 17 00:00:00 2001 From: jameslinnell Date: Tue, 22 Aug 2023 11:39:49 +0100 Subject: [PATCH] Add CORS headers to catchAll Error response --- proxies/sandbox/apiproxy/proxies/default.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proxies/sandbox/apiproxy/proxies/default.xml b/proxies/sandbox/apiproxy/proxies/default.xml index 9a739aa..2d00eea 100644 --- a/proxies/sandbox/apiproxy/proxies/default.xml +++ b/proxies/sandbox/apiproxy/proxies/default.xml @@ -14,8 +14,7 @@ - request.header.apikey = null or private.common.status-endpoint-api-key != request.header.apikey - + request.header.apikey = null or private.common.status-endpoint-api-key != request.header.apikey RaiseFault.401Unauthorized @@ -27,7 +26,8 @@ javascript.SetStatusResponse - (proxy.pathsuffix MatchesPath "/_status") and ((request.verb = "GET") or (request.verb = "HEAD")) + (proxy.pathsuffix MatchesPath "/_status") and ((request.verb = "GET") or (request.verb = "HEAD")) +