Skip to content

Instantly share code, notes, and snippets.

@JonnySchnittger
Created July 17, 2019 23:25
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 JonnySchnittger/413228ef6cb5ad8f6253816de131b92e to your computer and use it in GitHub Desktop.
Save JonnySchnittger/413228ef6cb5ad8f6253816de131b92e to your computer and use it in GitHub Desktop.
CORS configuration for IIS
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="https://<your target domain>.slack.com" />
<add name="Access-Control-Allow-Methods" value="GET, PUT, POST, DELETE" />
<add name="Access-Control-Allow-Credentials" value="true" />
</customHeaders>
</httpProtocol>
</system.webServer>
<location path="payload.exe">
<system.webServer>
<staticContent>
<clientCache cacheControlMode="DisableCache" />
</staticContent>
</system.webServer>
</location>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment