Skip to content

Instantly share code, notes, and snippets.

@wushan
Created November 2, 2016 01:23
Show Gist options
  • Save wushan/326e4ee111e2150cf79c5a2cdb0d29ba to your computer and use it in GitHub Desktop.
Save wushan/326e4ee111e2150cf79c5a2cdb0d29ba to your computer and use it in GitHub Desktop.
<?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, HEAD, OPTIONS" />
<add name="Access-Control-Allow-Credentials" value="true"/>
<add name="Access-Control-Allow-Headers" value="X-Requested-With, origin, content-type, accept" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment