Spring boot webapp 401 error for HTTPS requests

Hallo Everyone,

I’m getting 401 error for spring boot APIs using HTTPS requests. I’m using keycloak for authorization. When I just use HTTP requests the spring boot authorizes keycloak and the request is successful. The problem occurs when webapp is delpoyed on public instance. And I have deployed my webserver via nginx-proxy. So not able to figure out where is the problem. Is it at the keycloak side, or springboot webconfig side or at nginx proxy side?. It would be great if you could share your views or experiences over it.