I am trying to add some [WebMethod] annotated endpoint functions to a Webforms style web app (.aspx and .asmx).
[WebMethod]
I\'d like to annotate those endpoints w
For the web form, you can use
Response.AddHeader("Access-Control-Allow-Origin", "*");
instead of
Response.AppendHeader("Access-Control-Allow-Origin", "*");
The first one works for old version of ASP.Net Web Form.