Javascript cannot perform Base64 transcoding on remote images,
Error reported when converting a web image to a Base64 code
Image from origin 'HTTP: // 114.215.87.123: 8900 'has been blocked from loading by Cross-Origin Resource Sharing policy: no 'access-Control-Allow-origin' header is present on the requested resource. origin 'HTTP: // localhost: 100' is therefore not allowed access.
The image has been blocked from loading the resource sharing policy from the Origin "http: // 114.215.87.123: 8900": the requested resource is not provided with the "Access-Control-Allow-Origin" header. The origin is "http: // localhost: 63342" and therefore cannot be accessed.
You can clearly see the error in the prompt information.
Add the config file to IIS.
Create a new web. config file.
Enter the following content:
<? Xml version = "1.0" encoding = "UTF-8"?> <Configuration> <system. webServer>
Restart IIS (or restart IIS if not ).