Skip to content

Instantly share code, notes, and snippets.

@happyBanshee
Forked from Jalalhejazi/IIS_Verbs.config
Created August 19, 2017 18:41
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 happyBanshee/e9d6dbbf271913dbd254f111a9ee2b4d to your computer and use it in GitHub Desktop.
Save happyBanshee/e9d6dbbf271913dbd254f111a9ee2b4d to your computer and use it in GitHub Desktop.
CORS: Web.config to enable CORS
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*"/>
<add name="Access-Control-Allow-Methods" value="GET,PUT,POST,DELETE,OPTIONS"/>
<add name="Access-Control-Allow-Headers" value="Content-Type"/>
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment