如何设置可以使用 ASMX 服务的特定域?

发布于 2024-08-08 17:21:24 字数 70 浏览 3 评论 0原文

我想将我的网站的默认域名设置为仅由网络服务授予访问权限。

我正在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

最近可好 2024-08-15 17:21:24

没有办法做到这一点。事实上,如果你仔细想想,这甚至没有任何意义。

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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文