Can access influxdb web through firefox but not chrome

I have downloaded influxdb version v2.7.0 on remote location where I ssh into. Whenever I tried to access the web through Chrome, I am getting Bad Gateway error. However, if I run it on Firefox, it works fine. Does anyone know why this is happening?