Railway is overwriting an important header [X-Request-Id]

8 months ago

I'm encountering a challenge integrating Mercado Pago Webhooks on Railway. Their validation process requires specific headers, but some of these headers are being overwritten by Railway's infrastructure.

My API is built with NestJS, and everything functions correctly when tested in other environments. I've pinpointed that Railway is modifying the X-Request-Id header, which is crucial for validating webhook authenticity (see: https://www.mercadopago.com.br/developers/en/docs/your-integrations/notifications/webhooks#bookmark_2._validate_notification_origin)

Is there a way to configure Railway to preserve these headers or any workarounds to ensure successful Mercado Pago webhook integration?

Solved

3 Replies

8 months ago

Hi,

The team is currently out for a long weekend, but we've shared this with our infra engineers so they can look into a solution tomorrow
Best,
Nico


Status changed to Awaiting User Response railway[bot] 8 months ago


8 months ago

Thanks for helping! Okay! I'll be waiting for news. Greetings!


Status changed to Awaiting Railway Response railway[bot] 8 months ago


8 months ago

Hello! we now use X-Railway-Request-Id


Status changed to Awaiting User Response railway[bot] 8 months ago


Status changed to Solved brody 8 months ago


Railway is overwriting an important header [X-Request-Id] - Railway Help Station