CORS endpoints on asp.net Webforms [WebMethod] endpoints

后端 未结 6 1125
北海茫月
北海茫月 2021-01-04 06:47

I am trying to add some [WebMethod] annotated endpoint functions to a Webforms style web app (.aspx and .asmx).

I\'d like to annotate those endpoints w

6条回答
  •  执念已碎
    2021-01-04 07:12

    I think your code looks good, but IIS does not send the header entity alone with response expectedly. Please check whether IIS is configured properly.

    • Configuring IIS6
    • Configuring IIS7

    If CORS doesn't work for your particularity problem, maybe jsonp is another possible way.

提交回复
热议问题