зеркало из
1
0
Форкнуть 0
PSRule.Rules.Azure/docs/examples-apim-policy.xml

30 строки
803 B
XML

<policies>
<inbound>
<cors allow-credentials="true">
<allowed-origins>
<origin>https://contoso.developer.azure-api.net</origin>
<origin>https://developer.contoso.com</origin>
</allowed-origins>
<allowed-methods preflight-result-max-age="300">
<method>GET</method>
<method>PUT</method>
<method>POST</method>
<method>PATCH</method>
<method>HEAD</method>
<method>DELETE</method>
<method>OPTIONS</method>
</allowed-methods>
<allowed-headers>
<header>Content-Type</header>
<header>Cache-Control</header>
<header>Authorization</header>
</allowed-headers>
</cors>
</inbound>
<backend>
<forward-request />
</backend>
<outbound />
<on-error />
</policies>