简体   繁体   中英

Web service gives 401 error on https

I am using a web service with jQuery. My web service works fine on http:// but it gives me a 401 (unauthorized) error when running on https://.

Please advise me on what I need to do.

Do you have any bindings for HTTPS? Do you have a sever certificate installed?

不知道这是否是您的问题,但是我遇到了类似的问题,并且由于IIS Web服务器被设置为不使用匿名身份验证,因此我必须在Web服务调用中添加以下行

myProxy.Credentials= System.Net.CredentialCache.DefaultCredentials;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM