Skip to content

Commit

Permalink
Add CORS headers to catchAll Error response
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslinnell committed Aug 22, 2023
1 parent e6b8c66 commit f13fb1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions proxies/sandbox/apiproxy/proxies/default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
<Flow name="StatusEndpoint">
<Request>
<Step>
<Condition>request.header.apikey = null or private.common.status-endpoint-api-key != request.header.apikey
</Condition>
<Condition>request.header.apikey = null or private.common.status-endpoint-api-key != request.header.apikey</Condition>
<Name>RaiseFault.401Unauthorized</Name>
</Step>
<Step>
Expand All @@ -27,7 +26,8 @@
<Name>javascript.SetStatusResponse</Name>
</Step>
</Response>
<Condition>(proxy.pathsuffix MatchesPath "/_status") and ((request.verb = "GET") or (request.verb = "HEAD"))</Condition>
<Condition>(proxy.pathsuffix MatchesPath "/_status") and ((request.verb = "GET") or (request.verb = "HEAD"))
</Condition>
</Flow>
<Flow name="Raise400ForMissingODSHeader">
<Request>
Expand Down

0 comments on commit f13fb1b

Please sign in to comment.