Skip to content

Sentry-trace may cause CORS errors #4114

Closed
@0xshellming

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions