Skip to content

Instantly share code, notes, and snippets.

@rogeriopradoj
Forked from gon250/web.config
Created November 22, 2017 21:04
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 rogeriopradoj/36c5f52e043458b12af06e1a91dac96a to your computer and use it in GitHub Desktop.
Save rogeriopradoj/36c5f52e043458b12af06e1a91dac96a to your computer and use it in GitHub Desktop.
Enable cors domain in the web.config
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="Content-Type" />
<add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" />
</customHeaders>
</httpProtocol>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment