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
Access to XMLHttpRequest at 'https://sentry.io/api/embed/error-page/?dsn=https://1d71f704d08d4bad95a66d041a087279@o4505162248945664.ingest.sentry.io/4505517755138048&eventId=483fc1b01e0545c087b10949a364a861' from origin 'https://console.craftcms.com' has been blocked by CORS policy: Request header field baggage is not allowed by Access-Control-Allow-Headers in preflight response.
Baggage and Sentry-Trace are indeed in the outgoing request (as I believe they should be).
But the response for the OPTIONS request doesn't include them in Access-Control-Allow-Headers:
The text was updated successfully, but these errors were encountered:
Upon further investigation, I was setting tracePropagationTargets via some env vars that weren't present in my build process, so it resulting in a Regex that matched everything.
init({// my dsn as stringdsn: SENTRY_DSN||'***',// Adjust this value in production, or use tracesSampler for greater controlenvironment: SENTRY_ENVIRONMENT,normalizeDepth: 11,integrations: [newExtraErrorData({depth: 10})],tracePropagationTargets: [],tracesSampleRate: 0,tracesSampler: ()=>0,// ...ignoreErrors: [/^Product not found for sku: ([\w]*)$/],})
It seems like it doesn't add the sentry-trace but still breaks THIRD_PARTY CORS>
There is no way for me to control my third party Access-Control-Allow-Headers.
If this can't be solved basically I have t chose between Sentry and my third party.
@pelagaggi I have the same exact issue and also on @sentry/nextjs. tracesSampleRate set to 0 and it's still adding the Bagger headers to the requests. I also tried to fine tune tracePropagationTargets without success.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/vue
SDK Version
7.64.0
Framework Version
7.64.0
Link to Sentry event
https://sentry.io/api/embed/error-page/?dsn=https://1d71f704d08d4bad95a66d041a087279@o4505162248945664.ingest.sentry.io/4505517755138048&eventId=483fc1b01e0545c087b10949a364a861
SDK Setup
Steps to Reproduce
Sentry.showReportDialog
Expected Result
Successful submission
Actual Result
Baggage
andSentry-Trace
are indeed in the outgoing request (as I believe they should be).But the response for the OPTIONS request doesn't include them in
Access-Control-Allow-Headers
:The text was updated successfully, but these errors were encountered: