Website stuck loading when proxy is enabled

What is the name of the domain?

leadminer.io

What is the issue you’re encountering

We are having a weird behaviour where when a user login to our website, close it without logging out, and open the app back after some time, it keeps loading and opens when the user clear cookies and browser cache.

What steps have you taken to resolve the issue?

At first we thought it was a Cloudflare caching problem, we tried several steps to solve the issue including bypassing cache for all requests, applying these nuxt recommendation Deployment · Get Started with Nuxt, but didn’t fix the stuck loading problem, until we disabled Cloudflare proxy, the website started to open normally and the problem never happened since then.
our application is served by node server, and reverse proxied with Caddy, authentication is managed by Supabase auth service.

What are the steps to reproduce the issue?

Cloudflare proxy should be enabled, login to our website and get back to the app after a while (few hours to few days), the issue never happened when a user is logged out from the website.