-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sentry-trace may cause CORS errors #4114
Labels
Comments
Routing to @getsentry/team-webplatform for triage. ⏲️ |
rhcarvalho
changed the title
Centry-trace Cause CORS Error
Sentry-trace may cause CORS errors
Nov 3, 2021
We can definitely improve the docs by bringing |
Closed
@QuXiaoMing, please refer to the documentation for We will look for ways to improve our documentation and communicate this better. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem Statement
We initialize sentry according to the official documents whitout Setting tracingOrigins.
Sentry will add sentry-trace to HTTP-REQUEST-HEADER automatic. This operation will cause CORS Error
If user upgrade the Sentry to the Vesion without change the tracingOrigins config. This can cause serious errors.
It would be presumptuous to add http header by default config, this operation is destructive.
We recommend that sentry-trace header to be turned off by default.
"@sentry/browser": "^6.13.3",
"@sentry/integrations": "^6.13.3",
"@sentry/tracing": "^6.13.3"
Solution Brainstorm
We recommend that sentry-trace header to be turned off by default.
The text was updated successfully, but these errors were encountered: