If this were a dynamic response, I\'d simply do Response.Headers.Add(\"Access-Control-Allow-Origin\", \"*\"); but I have a static file I\'d like to allow cross
Response.Headers.Add(\"Access-Control-Allow-Origin\", \"*\");
This should work
<location path="Sample.txt"> <system.webServer> <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="*" /> </customHeaders> </httpProtocol> </system.webServer> </location>