[英]Only let one app have access to api endpoint?
I am gonna have an open source app in which it needs to send some data to an fastapi python api, how can i make it so that only the app can make requests to the api and not some random person abusing the api endpoint? I am gonna have an open source app in which it needs to send some data to an fastapi python api, how can i make it so that only the app can make requests to the api and not some random person abusing the api endpoint?
There are so many ways to do that.有很多方法可以做到这一点。 Even some of the techniques doesn't bother the API endpoint.甚至某些技术也不会打扰 API 端点。
The IP method is much better than doing on the application end. IP 方法比在应用端做的要好得多。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.