有什么方法可以阻止.NET Core中Postman发出的HTTP请求? [英] Is there any way to block HTTP requests made by Postman in .NET Core?
问题描述
我只是想知道POSTMAN发出的HTTP请求是否有任何阻止方式?就像浏览器借助CORS一样,仅允许特定来源访问资源.预先感谢.
I just wanted to know whether is there any way block to HTTP requests made by POSTMAN? Just like browser with the help of CORS allows only specific origins to access a resource. Thanks in advance.
推荐答案
我不知道有什么东西可以使请求是通过邮递员发出的.
I am not aware of anything that gives away the fact that the request is made via Postman.
归根结底,Postman是一个简单的客户端,因此请求是通过它发出的,或者实际上是任何其他客户端都是无关紧要的.Postman的工作是帮助与API进行对话,甚至自动化该过程.
At the end of the day, Postman is a simple client so the fact that the request is coming through it, or any other client as a matter of fact is irrelevant. Postman's job is to help talk to APIs and even automate this process.
如果您担心安全性,请先保护您的API.这样,只要经过身份验证并实际上允许与您的API对话,您就不会在乎如何获得请求.
If you are worried about security then secure your API first. Then you wouldn't really care how you get a request, as long as it's authenticated and actually allowed to talk to your API.
这篇关于有什么方法可以阻止.NET Core中Postman发出的HTTP请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!