Sn0rt commented on issue #9239: URL: https://github.com/apache/apisix/issues/9239#issuecomment-1506298336
has reproduced. let me check . ```shell curl -s http://127.0.0.1:9180/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d @./meta-router.json|jq { "key": "/apisix/routes/1", "value": { "uri": "/xubin/", "name": "检查测试", "update_time": 1681357891, "plugins": { "ip-restriction": { "whitelist": [ "127.0.0.1" ], "_meta": { "priority": 99999 }, "message": "Your IP address is not allowed" }, "basic-auth": { "password": "bar", "hide_credentials": false, "username": "foo" } }, "methods": [ "GET" ], "id": "1", "upstream": { "type": "roundrobin", "nodes": [ { "host": "httpbin.org", "weight": 1, "priority": 0, "port": 80 } ], "hash_on": "vars", "pass_host": "pass", "scheme": "http" }, "status": 1, "priority": 1, "create_time": 1681357731 } } ``` check ```shell curl http://localhost:9080/xubin/ -i --interface 127.0.0.1 HTTP/1.1 401 Unauthorized Date: Thu, 13 Apr 2023 03:51:56 GMT Content-Type: text/plain; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive WWW-Authenticate: Basic realm='.' Server: APISIX/3.2.0 Apisix-Plugins: ip-restriction, basic-auth {"message":"Missing authorization in request"} ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
