Skip to content

Instantly share code, notes, and snippets.

@evan-boissonnot
Forked from jalalhejazi/IIS_Verbs.config
Created February 19, 2021 10:37
Show Gist options
  • Select an option

  • Save evan-boissonnot/644aca18f963e1e221a51802675aeef0 to your computer and use it in GitHub Desktop.

Select an option

Save evan-boissonnot/644aca18f963e1e221a51802675aeef0 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