Created
July 17, 2019 23:25
-
-
Save JonnySchnittger/413228ef6cb5ad8f6253816de131b92e to your computer and use it in GitHub Desktop.
CORS configuration for IIS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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