Skip to content

request help: jwt功能只做token验证,关闭获取token的接口 #5180

Answered by laokan
wjmmjr asked this question in Q&A
Discussion options

You must be logged in to vote

curl -i -X PUT \ -H "Content-Type:application/json" \ -H "X-API-KEY:edd1c9f034335f136f87ad84b625c8f1" \ -d \ '{ "interceptors": [ { "name": "ip-restriction", "conf": { "whitelist": ["10.0.0.0/8"] } } ] }' \ 'http://apisix:9080/apisix/admin/plugin_metadata/prometheus'

可以利用 interceptors 把url 保护一下

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tzssangglass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5179 on October 08, 2021 09:20.