problem with calling remote ASMX using jQuery

前端 未结 4 1847
一向
一向 2021-01-21 10:52

Been trying my best to understand this correctly. What is the difference between an XML, SOAP and JSON response? And how does one know how to call a web service whose response i

4条回答
  •  一向
    一向 (楼主)
    2021-01-21 11:39

    in page load function add the next lines for a client ....

            base.Response.AddHeader("Access-Control-Allow-Origin", "*");
            base.Response.AddHeader("Access-Control-Allow-Methods", "GET, POST, OPTIONS");
            base.Response.AddHeader("Access-Control-Allow-Headers", "X-Requested-With");
            base.Response.AddHeader("Access-Control-Max-Age", "86400");
    

提交回复
热议问题