Skip to content

Instantly share code, notes, and snippets.

@bjornmicallef
Created February 27, 2020 19:47
Show Gist options
  • Save bjornmicallef/8b4f7a91606ce2083832462aa9c87f69 to your computer and use it in GitHub Desktop.
Save bjornmicallef/8b4f7a91606ce2083832462aa9c87f69 to your computer and use it in GitHub Desktop.
allow CORS on azure api management
<policies>
<inbound>
<base />
<cors>
<allowed-origins>
<origin>*</origin>
</allowed-origins>
<allowed-methods>
<method>GET</method>
<method>POST</method>
<method>OPTIONS</method>
</allowed-methods>
<allowed-headers>
<header>*</header>
</allowed-headers>
<expose-headers>
<header>*</header>
</expose-headers>
</cors>
</inbound>
<backend>
<base />
</backend>
<outbound>
<base />
</outbound>
<on-error>
<base />
</on-error>
</policies>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment