Capturing Cross-Domain Script Errors

Honeybadger ignores cross-domain script errors by default because they contain no useful information. You can fix this by loading your scripts with CORS.

To enable CORS on your cross-domain scripts, add the CORS header to your web-server:

Access-Control-Allow-Origin: *

Then add the crossorigin attribute to your script tag:

<script src="//cdn.example.com/application.js" crossorigin>

For server-specific instructions, check out enable-cors.org.