Skip to main content
f_reiz
Gold ⭐️
January 16, 2019
Solved

NiFi with proxy returning HTTP 403 on API upload

Hi all,

I have NiFi behind a nginx server proxy, and when I try upload template I recieve HTTP 403. If I access directly I can upload template. Below are my config file nginx.

upstream nifi-app {
ip_hash;
server node-01:8443;
server node-02:8443;
}

server {
listen 443 ssl;
server_name nifi-server;

ssl_certificate /etc/nginx/conf.d/cert.pem;
ssl_certificate_key /etc/nginx/conf.d/key.pem;

location /nifi {
proxy_pass https://nifi-app;
proxy_set_header X-ProxyScheme https;
proxy_set_header X-ProxyHost myhost.com;
proxy_set_header X-ProxyPort 443;
proxy_set_header X-ProxyContextPath /;
}
}

Any help will be appreciated

f_reiz
f_reizAnswer
Gold ⭐️
January 17, 2019

According to link Added the CORS filter to the templates/upload endpoint, this is not possible.

1 reply

f_reiz
f_reizAuthorAnswer
Gold ⭐️
January 17, 2019

According to link Added the CORS filter to the templates/upload endpoint, this is not possible.

Translate