Add extra headers to Backend services

Dear community,

I am stuck exposing Apache Nifi using Cloudflare tunnel. Unfortunately Apache Nifi expects the following Headers to be passed when running behind Reverse Proxy:

X-ProxyScheme - the scheme to use to connect to the proxy
X-ProxyHost - the host of the proxy
X-ProxyPort - the port the proxy is listening on
X-ProxyContextPath - the path configured to map to the NiFi instance

Any idea how to address this problem?

Best regards

I’m not familiar with Nifi, but you can add headers to the Origin requests using a HTTP Request Header Modification Rule.

https://developers.cloudflare.com/rules/transform/request-header-modification/create-dashboard/

2 Likes

Thanks. I have just put the Headers through Modification Rule and it worked for me.

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.