Skip to content

Instantly share code, notes, and snippets.

@vai
vai / web-rewrite-sample.config
Created October 27, 2015 17:38
Sample Angular rewrites and reverse proxy rules for IIS and Application Request Routing
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
<add name="Access-Control-Allow-Credentials" value="true" />
<add name="Access-Control-Allow-Methods" value="POST,OPTIONS,GET,PUT" />
<add name="Access-Control-Allow-Headers" value="Cache-Control,Pragma,Origin,Authorization,Content-Type,DNT,X-Requested-With,Accept,Accept-Language,Accept-Encoding" />
</customHeaders>