Why do I get the error "Script error." in Web SDK?

The "Script error." error occurs when the app page loads a JavaScript file from another domain and an error occurs in the JS of that domain.

To deal with this, configure CORS settings so that you can get the error details.

Configuration details
==========================================
1) Add "Access-Control-Allow-Origin" to the response header of the server in the other domain where the JS file was placed.
 Access-Control-Allow-Origin: [Origin of the page to load the JS file or "*"].

Add crossorigin attribute to the script tag that loads the JS file.
 <script type="text/javascript" src="hoge.js" crossorigin="anonymous"></script>.
==========================================

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request
Powered by Zendesk