-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
Environment
SaaS (https://sentry.io/)
What are you trying to accomplish?
I have an SDK that captures error events into sentry by using the script below.
window.addEventListener('error', (event) => { client.captureException(event); });
How are you getting stuck?
This works while testing locally, but when I access my SDK via script tag in an external application, the error property in the event is null and the error message becomes "Script Error."
Tried the solution in this page https://sentry.io/answers/script-error/ but it still results in "Script Error."
I've made sure my SDK has access-control-allow-origin: *
header. And the script tag that loads the SDK has crossorigin='anonymous'
Where in the product are you?
Other
Link
No response
DSN
No response
Version
No response
Metadata
Metadata
Assignees
Labels
Projects
Status
Waiting for: Community