If you use nginx as reverse proxy for graylog web UI, you need to set this special header
https://docs.graylog.org/en/2.5/pages/configuration/web_interface.html#nginx
It is required for all reverse proxy software, not only nginx.
Someone in the past have similar problem, maybe this can help.