idbeta opened a new issue #2725: URL: https://github.com/apache/apisix/issues/2725
### Issue description enabled the jwt-auth plugin, if create a route which uri is `/*`, when get the jwt's token will return 401, but the other uri don't have this problem. ```shell $curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "methods": ["GET"], "uri": "/*", "plugins": { "jwt-auth": {} }, "upstream": { "type": "roundrobin", "nodes": { "127.0.0.1:9797": 1 } } }' ``` get token ``` $curl http://127.0.0.1:9080/apisix/plugin/jwt/sign?key=user-key -i HTTP/1.1 401 Unauthorized ... ... {"message":"Missing JWT token in request"} ``` ### Environment * apisix version (cmd: `apisix version`): mater * OS: ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
