Cors
No edit summary
No edit summary
Line 11: Line 11:
   </system.webServer>   
   </system.webServer>   
  </configuration></pre>To do this on App level - change Web.config
  </configuration></pre>To do this on App level - change Web.config
Good links: https://www.w3.org/wiki/CORS_Enabled

Revision as of 19:04, 11 September 2020

To enable cors on IIS - all sites on the machine:

Add a or change web.config on the root web site (Default Web site)

<?xml version="1.0" encoding="utf-8"?>  
<configuration>    
  <system.webServer>      
    <httpProtocol>        
      <customHeaders>          
        <add name="Access-Control-Allow-Origin" value="*" />        
      </customHeaders>      
    </httpProtocol>    
   </system.webServer>  
 </configuration>

To do this on App level - change Web.config

Good links: https://www.w3.org/wiki/CORS_Enabled

This page was edited 41 days ago on 03/26/2024. What links here