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

时间:2022-12-03 22:51:44

I want to set my default Domain name for my site to be given access only by the webservices.

我想为我的网站设置我的默认域名,只能通过webservices访问。

I'm using the webservices in JQuery Ajax

我正在使用JQuery Ajax中的webservices

1 个解决方案

#1


0  

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?

Web服务将做什么与任意程序使用HTTP可以做什么不同?您的网站如何区分它们?

Perhaps you can change your site to require authentication, then only give the credentials to users of the web service?

也许您可以更改您的站点以要求身份验证,然后只将凭据提供给Web服务的用户?

#1


0  

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?

Web服务将做什么与任意程序使用HTTP可以做什么不同?您的网站如何区分它们?

Perhaps you can change your site to require authentication, then only give the credentials to users of the web service?

也许您可以更改您的站点以要求身份验证,然后只将凭据提供给Web服务的用户?