I am trying to insert the script via <script>
tag because ad blocker keeps blocking the script for CORS. I cannot find out how to this from CDN.
The only package available per the docs is the @sentry/browser
from CDN - Troubleshooting for Browser JavaScript | Sentry Documentation
Does anyone know how I can get @sentry/react
from CDN?
I enabled “debug: true” on Sentry.init
and succesfully see debug logs in console in prod. But after the first error in the javascript happens, I then get this CORS error in console is:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://o430802.ingest.sentry.io/api/5869369/store/?sentry_key=6e2edd71daf34c7cac9478b87a6bf8d6&sentry_version=7. (Reason: CORS request did not succeed)
Here are my imports:
import { ExtraErrorData } from '@sentry/integrations';
import * as Sentry from '@sentry/react';
import { Integrations } from '@sentry/tracing';
My package.json
:
"@sentry/integrations": "^6.9.0",
"@sentry/react": "^6.9.0",
"@sentry/tracing": "^6.9.0",