Cors
No edit summary
No edit summary
Line 6: Line 6:


Add this in configuration
Add this in configuration
<pre><?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer><cors enabled="true" failUnlistedOrigins="true"><add origin="*" /></cors></system.webServer></configuration></pre>
<pre><system.webServer>
  <cors enabled="true" failUnlistedOrigins="true">
    <add origin="*" />
  </cors>
</system.webServer></pre>

Revision as of 14:19, 11 September 2020

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

Open the Machineconfig

The Machine.config file is located in the %SystemRoot%\Microsoft.NET\Framework\%VersionNumber%\CONFIG\directory

Add this in configuration

<system.webServer>
  <cors enabled="true" failUnlistedOrigins="true">
    <add origin="*" />
  </cors>
</system.webServer>
This page was edited 41 days ago on 03/26/2024. What links here