githubxubin commented on issue #8613: URL: https://github.com/apache/apisix/issues/8613#issuecomment-1439588914
> I'm using 3.1.0. But you can try this step on your 2.15 version. I think the version will not affect it. thank you replay ,i success but i think the function is unstable:you can see: [root@localhost example]# curl 'http://127.0.0.1:9080/admin/get' -H 'Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJrZXkiOiJqd3Rfa2V5IiwiZXhwIjoxNjc3MTQwNDIwfQ.7KneQwNtch4B8JjFTZlr4fDvUOBPxLRNo9PSlG8WXe0' -i HTTP/1.1 200 OK Content-Type: application/json Content-Length: 454 Connection: keep-alive Date: Wed, 22 Feb 2023 08:09:30 GMT Access-Control-Allow-Origin: * Access-Control-Allow-Credentials: true Server: APISIX/2.15.0 { "args": {}, "headers": { "Accept": "*/*", "Authorization": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJrZXkiOiJqd3Rfa2V5IiwiZXhwIjoxNjc3MTQwNDIwfQ.7KneQwNtch4B8JjFTZlr4fDvUOBPxLRNo9PSlG8WXe0", "Host": "127.0.0.1", "User-Agent": "curl/7.29.0", "X-Amzn-Trace-Id": "Root=1-63f5cdba-369cdf142acd566b2a302a21", "X-Forwarded-Host": "127.0.0.1" }, "origin": "172.18.0.1, 219.141.226.82", "url": "http://127.0.0.1/get" } [root@localhost example]# curl 'http://127.0.0.1:9080/admin/get' -H 'Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJrZXkiOiJqd3Rfa2V5IiwiZXhwIjoxNjc3MTQwNDIwfQ.7KneQwNtch4B8JjFTZlr4fDvUOBPxLRNo9PSlG8WXe0' -i HTTP/1.1 401 Unauthorized Date: Wed, 22 Feb 2023 08:20:56 GMT Content-Type: text/plain; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Server: APISIX/2.15.0 {"message":"failed to verify jwt"} -- 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]
