Skip to content

Does cloudflared preserve the Referer header? #1536

@zhx57

Description

@zhx57

I am using cloudflared to expose my web application. My application's CSRF protection middleware relies on validating the Referer header.
I am experiencing CSRF validation failures when requests are routed through the tunnel, which leads me to believe the original Referer header from the client is being modified or stripped before it reaches my origin server.
If it is modified or removed, is there a configuration setting to preserve the original Referer header?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions