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:
Article ID: 1980, Created: August 31, 2018 at 8:26 PM, Modified: January 18 at 6:37 PM