TL;DR
Javascript error reporting like Stackdriver Error Reporting or Sentry dose not work because of CrossOrigin issues.
Is there any plan to enable to load CocosCreator’s project.js with CrossOrigin attribute?
Details
I’m building for web-mobile and upload files to CDN with domain like: http://content.example.com/ .
These files are loaded from another domain like: http://www.example.com/index.html .
I want to catch javascript error in project.js with window.onerror function, but detailed error information is not reported, because of CORS check.
Please see: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
crossorigin
Normal script elements pass minimal information to the window.onerror for scripts which do not pass the standard CORS checks. To allow error logging for sites which use a separate domain for static media, use this attribute. See CORS settings attributes for a more descriptive explanation of the valid arguments.
Would you please enable to load project.js with crossorigin="anonymous"
attribute?