[Feature request] Load project.js with CrossOrigin attribute

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?

You got to do it your server.

As in your example, modify your CDN server’s response header to include

Access-Control-Allow-Origin: *

Refer to this:
https://enable-cors.org/server.html

Thank you for your response!

I already set CDN server’s response header:

Access-Control-Allow-Origin:*

But window.onerror dose’t report detailed error information.

According to below document, I guess that crossorigin attributes is needed for window.onerror reporing.