Skip to content

Instantly share code, notes, and snippets.

@mattruma
Last active December 27, 2021 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattruma/9a07eb3e63227ae57928343b2a2c4846 to your computer and use it in GitHub Desktop.
Save mattruma/9a07eb3e63227ae57928343b2a2c4846 to your computer and use it in GitHub Desktop.
adventures-with-apim-blazor-webassembly-cors-issues
<policies>
<inbound>
<base />
<cors>
<allowed-origins>
<origin>https://localhost:7221/</origin>
<origin>https://localhost:44372/</origin>
</allowed-origins>
<allowed-methods>
<method>GET</method>
<method>POST</method>
<method>PUT</method>
<method>DELETE</method>
<method>OPTIONS</method>
<method>HEAD</method>
<method>PATCH</method>
</allowed-methods>
</cors>
</inbound>
<backend>
<base />
</backend>
<outbound>
<base />
</outbound>
<on-error>
<base />
</on-error>
</policies>
<policies>
<inbound>
<base />
<cors>
<allowed-origins>
<origin>https://localhost:7221/</origin>
<origin>https://localhost:44372/</origin>
</allowed-origins>
<allowed-methods>
<method>GET</method>
<method>POST</method>
<method>PUT</method>
<method>DELETE</method>
<method>OPTIONS</method>
<method>HEAD</method>
<method>PATCH</method>
</allowed-methods>
<allowed-headers>
<header>*</header>
</allowed-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