Private Resource not reddirecting to Keycloak login

Hi, how are you?

When I try to access my protected resource, it is not redirecting me to Keycloak for login. Instead, it keeps loading and eventually returns a 403 Forbidden error.

This was working fine when I used it locally, but when I moved it to my Linux server, which is behind an Nginx proxy, the redirection stopped working.

What could be causing the redirection to Keycloak to fail and return a 403 Forbidden error when deployed behind an Nginx proxy? Are there any additional configurations or steps I should check or implement to resolve this issue?