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
You can do like this in MVC
[EnableCors(origins: "*", headers: "*", methods: "*")] public ActionResult test() { Response.AppendHeader("Access-Control-Allow-Origin", "*"); return View(); }