How to add custom HTTP headers to deployed app
gunni
PROOP

2 months ago

How can I add custom HTTP headers to my app?

I deployed Cachet, I want to add security headers such as:

  • Strict-Transport-Security

  • Content-Security-Policy

  • X-Frame-Options

  • X-Content-Type-Options

  • Referrer-Policy

Can I do so from Railway or do I need to do so via the app itself by modifying it?

Solved$10 Bounty

Pinned Solution

You'd need to code your application to send those headers. Railway only hosts applications.

2 Replies

You'd need to code your application to send those headers. Railway only hosts applications.


gunni
PROOP

2 months ago

I believe i can solve it by adding a reverse proxy in front, since the app i am deploying is not made by me.


Status changed to Solved brody about 2 months ago


Loading...