Skip to content

Instantly share code, notes, and snippets.

@jsheely
Created May 17, 2013 04:19
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 jsheely/5596901 to your computer and use it in GitHub Desktop.
Save jsheely/5596901 to your computer and use it in GitHub Desktop.
Web.config settings for CORS support. Add to System.webServer node
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="Origin, X-Requested-With, Content-Type, Accept" />
<add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" />
</customHeaders>
</httpProtocol>
@rodneyjoyce
Copy link

Thanks, that worked

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