Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

NiFi with proxy returning HTTP 403 on API upload

avatar
New Contributor

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

1 ACCEPTED SOLUTION

avatar
New Contributor
1 REPLY 1

avatar
New Contributor

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