Skip to content

Sentry-trace may cause CORS errors #4114

Description

@0xshellming

Problem Statement

image

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions