如何设置可以使用 ASMX 服务的特定域?
我想将我的网站的默认域名设置为仅由网络服务授予访问权限。
我正在 JQuery Ajax 中使用 Web 服务
I want to set my default Domain name for my site to be given access only by the webservices.
I'm using the webservices in JQuery Ajax
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有办法做到这一点。事实上,如果你仔细想想,这甚至没有任何意义。
Web 服务将执行哪些操作与任意程序使用 HTTP 执行的操作有什么不同?您的网站如何区分它们?
也许您可以将站点更改为需要身份验证,然后只向 Web 服务的用户提供凭据?
There's no way to do this. In fact, it doesn't even make sense, once you think about it.
What will a web service be doing that is any different from what an arbitrary program could do using HTTP? How would your site distinguish between them?
Perhaps you can change your site to require authentication, then only give the credentials to users of the web service?