jQuery Call to WebService returns “No Transport” error

前端 未结 8 1656
渐次进展
渐次进展 2020-11-22 15:19

I have the following web service;

    [WebMethod]
    public string HelloWorld()
    {
        return \"Hello World\";
    }

It\'s stock st

8条回答
  •  生来不讨喜
    2020-11-22 15:38

    I solved it simply by removing the domain from the request url.

    Before: https://some.domain.com/_vti_bin/service.svc
    
    After: /_vti_bin/service.svc
    

提交回复
热议问题