All URLs getting redirected to keycloak login page in springboot app

I have a keycloak setup in a server , And app running fine when I’m running from my local machine.
It redirects to the keycloak login page only for restricted URLs .

But when I deploy this spring boot app in a separate aws server, All urls getting redirected to keycloak login page and after login , the getting continues 301 redirection.

Please somebody help me on this

In keycloak client configuration I have set “valid redirect URI field” as *