Application Insights:脚本错误未知

Application Insights: Script error at unknown

我们的一些客户端异常不包含任何详细信息:

Script error. at unknown

这些错误似乎与特定 OS 或浏览器无关:

有没有办法获取更多信息?

我想我已经有了答案。我们的脚本在 CDN 后面:

Browser exceptions Most browser exceptions are reported.

If your web page includes script files from content delivery networks or other domains, ensure your script tag has the attribute crossorigin="anonymous", and that the server sends CORS headers. This will allow you to get a stack trace and detail for unhandled JavaScript exceptions from these resources.

来源:https://azure.microsoft.com/en-us/documentation/articles/app-insights-asp-net-exceptions/#browser-exceptions

处理同一问题的其他来源:

http://blog.errorception.com/2012/12/catching-cross-domain-js-errors.html