Gettiing 401 when access from outside, but 200 from inside a K8S container

I hav a Keycloak server deployed in K8 container.
When I get a token from the container shell with curl and use this token to check an end-point from the same shell - it works.

When I get a token with Postman using an extrnal container URL, then try to test the same end-point with this token, I get 401. What could be the problem?

1 Like