Skip to content

Instantly share code, notes, and snippets.

@corydeppen
Created August 29, 2012 20:42
Show Gist options
  • Save corydeppen/3518666 to your computer and use it in GitHub Desktop.
Save corydeppen/3518666 to your computer and use it in GitHub Desktop.
Enable cross-domain Ajax requests using web.config
<system.webServer>
<httpProtocol>
<customHeaders>
<!--
Allow Web API to be called from a different domain.
http://dlr2008.wordpress.com/2012/04/26/asp-net-web-api-cross-domain-ajax-and-server-techniques-jsonp-and-cors/
-->
<add name="Access-Control-Allow-Origin" value="*" />
</customHeaders>
</httpProtocol>
</system.webServer>
@DDzia
Copy link

DDzia commented Jun 12, 2016

This is not work for get Identity Token?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment