Thanks for the feedback Kevin. IE does not currently support the crossOrigin attribute but it is something that is on our backlog.
Catching Cross Domain JS Errors in IE11
-
12-07-2023 - |
Question
By default JS errors originating on different domains aren't passed to window.onerror
handler - Although I don't think this happens on versions of IE below 10 (or maybe 11). Instead they get just a basic "Script Error" on Line 0
message.
In most browsers you have to set crossorigin="anonymous"
attribute on the script and return CORS headers on the script and then these errors will be caught.
However this doesn't seem to work on IE11. Is a different technique required?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow