-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Meta: Help WantedPackage: nextjsIssues related to the Sentry Nextjs SDKIssues related to the Sentry Nextjs SDK
Description
Environment
SaaS (https://sentry.io/)
Steps to Reproduce
- use sentry tunnel with nextjs app
- authenticate sentry via env variable
- nextjs app has own basic auth unrelated to sentry
- open app, type in basic auth credentials to login and observe network for sentry tunnel request
Expected Result
sentry tunnel request is successful
Actual Result
sentry tunnel request fails with status 400
causes: ["invalid project key"]
detail: "bad sentry DSN public key"
This appears to happen due to header 'authorization: Basic <xyz>' being sent to the tunnel endpoint. Note that this basic auth has nothing to do with sentry but the app itself.
Is there a way to avoid this override?
Sentry is already using SENTRY_AUTH_TOKEN env variable and has dsn specified in sentry.client.config.js, sentry.server.config.js and sentry.edge.config.js files.
Product Area
Other
Link
No response
DSN
https://00cd68d0276b4de3a6f342955581ac69@o430938.ingest.sentry.io/6122809
Version
7.55.0
GitHelge, j2ghz, Tomekmularczyk, Yourathernot, kyleawayan and 1 more
Metadata
Metadata
Assignees
Labels
Meta: Help WantedPackage: nextjsIssues related to the Sentry Nextjs SDKIssues related to the Sentry Nextjs SDK
Projects
Status
No status
Status
Waiting for: Community
Status
No status