Last updated 26 November 2026. By Paul Badarau.
Omar, a fictional developer, loads a typeface file from fonts.example on a portfolio page. The console shows Script error. and Monitoring stays empty.
- A browser reports a failure in a script from another host as the text
Script error., with no file, no line and no stack, unless that response sendsAccess-Control-Allow-Originfor the page and the script tag setscrossorigintoanonymous. - The installed
@sentry/browser11.6.0 drops a message that is onlyScript error.orJavascript error: Script error. on line 0. That drop is on by default. A message that is no longer that text is not dropped by this rule, so the real failure can be stored. - On the script response, send
Access-Control-Allow-Originwith the origin of the page. On the tag, setcrossorigintoanonymous. Reload. The console and the new issue then show the real type and message. window.onerrorreceives the same hidden string until those two are in place. A handler of your own does not uncover a message the browser withheld.
If fonts.example will not send the header, the browser keeps the real message to itself. A script added by a browser extension is in the same position, and the page cannot set the attribute on it. Leave the default drop in place. Storing the text Script error. would not name the failure.
The product page for this is Monitoring.