I'm having the following problem when I try to access the NiFi service inside a VM on a remote server from my local machine.
System Error
The request contained an invalid host header [:] in the request [/nifi/login]. Check for request manipulation or third-party intercept.
Valid host headers are [empty] or:
Does anyone know how to solve this problem?
I found the solution for the problem.
I simply accessed the /etc/ directory on linux and made a modification on the hosts file.
This is the host file before the modification.
The following lines are desirable for IPv6 capable hosts
This is the host file after the modification. I bound a name to the host ip (I'm using an example name and ip)
The following lines are desirable for IPv6 capable hosts
After that I modified the nifi.web.https.host in the nifi.properties file in the /conf/ directory of the nifi with the same name that I gave to the ip
So when I went to access nifi on my local machine I used the address with the name instead of the ip.