Skip to content

馃挕Add X-Forwarded-Proto header when incoming HTTPS request is forwarded to an HTTP service#1245

Description

@davidbarratt

Describe the feature you'd like
Currently, I have a several sites that are on a single host that are only accessible through the Cloudflare Tunnel. Once the request reaches the host, it is completely fine for the TLS to be terminated. However, if I forward the request to http://localhost then the application believes it was received on HTTP (despite the incoming request being HTTPS).

Describe alternatives you've considered

  1. Create a valid certificate for each hostname
  2. Create a self-signed certificate for each hostname and instruct cloudflared to ignore TLS verification
  3. Modify each application to assume https rather than http
  4. Add an X-Forwarded-Proto to the Request Header rules in Cloudflare (which seems unsafe)

Additional context
I feel like in previous versions this was the case, but at some point maybe it changed?

I really want to be able to have a service at http but the request indicates that it was received on https

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: NormalMinor issue impacting one or more usersType: Feature RequestA big idea that would be split into smaller pieces

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions