Skip to content

Commit 2130977

Browse files
committed
NPA-3877 Update Sandbox CORS response
1 parent 8864a41 commit 2130977

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

proxies/sandbox/apiproxy/policies/RaiseFault.DefaultError.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,16 @@
99
-->
1010
<RaiseFault async="false" continueOnError="false" enabled="true" name="RaiseFault.DefaultError">
1111
<DisplayName>RaiseFault.DefaultError</DisplayName>
12+
1213
<Properties/>
1314
<FaultResponse>
1415
<Set>
1516
<Headers>
1617
<Header name="Content-Type">application/fhir+json</Header>
18+
<Header name="Access-Control-Allow-Origin">{request.header.origin}</Header>
19+
<Header name="Access-Control-Allow-Headers">origin, x-requested-with, accept, content-type, nhsd-session-urid, authorization, x-correlation-id, x-request-id</Header>
20+
<Header name="Access-Control-Max-Age">3628800</Header>
21+
<Header name="Access-Control-Allow-Methods">GET, PUT, POST, DELETE</Header>
1722
</Headers>
1823
</Set>
1924
</FaultResponse>

0 commit comments

Comments
 (0)