路由设置的请求认证不生效
#2131
Replies: 1 comment 1 reply
-
本地未重现此问题。请提供 gateway 日志。查看日志的方式见 https://github.com/CH3CHO/higress-notes/blob/main/docs/log-viewing.md |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
版本2.1.0,使用docker部署,设置了请求认证的路由,在不带认证信息的条件下访问,返回了状态码200而不是401,具体配置如下:




设置的服务为:
路由设置为:
消费者设置为:
使用指令
curl http://localhost:8080/get -v
访问,得到结果如下:Beta Was this translation helpful? Give feedback.
All reactions