Nextcloud login stucked till manual refresh page

We have a nextcloud vm version 21.0.4 connected to it from internal network with http and internet with https is disabled in nextcloud because the address is configured on our firewall with virtual server. After logging in on this page, it loads indefinitely until we manually refresh the page.

What could be the problem?
Thanks in advance for your help!