Ajax Post: 405 Method Not Allowed

后端 未结 3 1516
庸人自扰
庸人自扰 2021-02-07 09:19

Within my API Controller called Payment, I have the following method:

[HttpPost]
public HttpResponseMessage Charge(Payment         


        
3条回答
  •  死守一世寂寞
    2021-02-07 09:55

    Turns out I needed to implement CORS support. http://blogs.msdn.com/b/carlosfigueira/archive/2012/02/20/implementing-cors-support-in-asp-net-web-apis.aspx

提交回复
热议问题