Fix No Access-Control-Allow-Origin header is present on the requested resource

Miscellaneous questions and troubleshooting
The browser is blocking a cross-domain request. Normally, the browser only allows requests within the same origin for security purposes.
To enable cross-domain requests, you can add the following code to the web.config file of the remote 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>
This does not work for ASP.NET Core applications.
 
 
If you are using an ASP.NET Core application, please refer to the following guide: