• No stack, no line, no col, no error message. Nothing. Nada. Inget. • Solution - add a crossOrigin attribute to external script tags • And add a CORS header: Access-Control-Allow-Origin: * <script src=“https://other.io/file.js” crossOrigin="anonymous"></script>
<script>
window.onerror = function (message, url, line, column, error) {
console.log(message); // Script error if you forget crossOrigin.
}
</script>