I’m getting an unauthorized access in the browser, and I’m seeing the following in the logs:
(W) 2021-07-05T16:26:16 - WebUI: Referer header & Target origin mismatch! Source IP: ‘::ffff:10.42.1.44’. Referer header: ‘http://portainer-i3/’. Target origin: ‘10.42.1.10:8090’
(W) 2021-07-05T16:26:16 - WebUI: Invalid Host header, port mismatch. Request source IP: ‘::ffff:10.42.1.44’. Server port: ‘8080’. Received Host header: ‘10.42.1.10:8090’
(W) 2021-07-05T16:26:48 - WebUI: Referer header & Target origin mismatch! Source IP: ‘::ffff:10.42.1.44’. Referer header: ‘http://portainer-i3/’. Target origin: ‘10.42.1.10:8090’
(W) 2021-07-05T16:26:48 - WebUI: Invalid Host header, port mismatch. Request source IP: ‘::ffff:10.42.1.44’. Server port: ‘8080’. Received Host header: ‘10.42.1.10:8090’
I have added the following to the config file:
WebUI\HostHeaderValidation=false
Upon restarting the container, the config file appears to be repopulated with the default configuration, and the configuration directive I added is removed.
How can I stop that from happening?
Thanks in advance!