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

**URL:** <https://forum.keycloak.org/t/gettiing-401-when-access-from-outside-but-200-from-inside-a-k8s-container/4998>\
**Category:** Securing applications\
**Created:** [September 23, 2020, 9:47am UTC](https://forum.keycloak.org/t/gettiing-401-when-access-from-outside-but-200-from-inside-a-k8s-container/4998 "2020-09-23T09:47:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![belgoros](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/belgoros/32/1380_2.png) [@belgoros](https://forum.keycloak.org/u/belgoros)\
**Post date:** [September 23, 2020, 9:47am UTC](https://forum.keycloak.org/t/gettiing-401-when-access-from-outside-but-200-from-inside-a-k8s-container/4998/1 "2020-09-23T09:47:42Z")

</div>

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?
