Skip to content

Instantly share code, notes, and snippets.

@torleifhalseth
Last active November 11, 2015 11:27
Show Gist options
  • Save torleifhalseth/6e27b0c45b6d4cbbbec1 to your computer and use it in GitHub Desktop.
Save torleifhalseth/6e27b0c45b6d4cbbbec1 to your computer and use it in GitHub Desktop.
Access-Control-Allow-Origin
<system.webServer>
<httpProtocol>
<customHeaders>
<!--
Allow Web API to be called from a different domain.
-->
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="Content-Type, Accept" />
<add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" />
</customHeaders>
</httpProtocol>
</system.webServer>
<system.webServer>
<httpProtocol>
<customHeaders>
<!--
Allow Web API to be called from a different domain.
-->
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="Content-Type, Accept" />
<add name="Access-Control-Allow-Methods" value="GET" />
</customHeaders>
</httpProtocol>
</system.webServer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment