Skip to content

Event URL not using X-Forwarded-Proto and X-Forwarded-Host #16671

Open
@mohd-akram

Description

@mohd-akram

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/node - fastify

SDK Version

9.29.0

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

  1. Create a Fastify server with trustProxy set to true running behind a reverse proxy passing the X-Forwarded-Proto header set to https and the X-Forwarded-Host header set to example.com
  2. Log an event

Expected Result

The event URL is https://example.com/

Actual Result

The event URL is http://localhost:3000/

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions