You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If your page loads scripts from different domains, you might see a lot of Script Error messages. These unhelpful messages occur because the browser's same-origin security policy is preventing the error information from one domain (hosting scripts) from leaking to another (your page). There are three ways to solve this:
Cross-Origin Resource Sharing
Modern browsers (latest Chrome and Firefox) will honor the CORS headers when chosing whether to expose error information between domains. The hosting server must have CORS Headers enabled. Then, when including the script tag, add the crossorigin attribute to the tag.
<script src="//hosted.com/path/to/script" crossorigin="anonymous"></script>
Check out this blog post for more information about CORS scripts.
This shows up a lot in @TrackJs
It's specific to iOS Chrome
The text was updated successfully, but these errors were encountered: