Strapi gets stuck on loading screen nothing error


I have installed Strapi on an Ubuntu cloud server and connected it to a domain using nginx. Everything is working fine so far, including accessing the admin panel at “mydomain/admin”. However, when I try to log in, it gets stuck on the loading screen. Additionally, I can still access the previously created APIs, but I cannot log in. What could be the issue?