Why are GET requests returning JSON disallowed by default?

后端 未结 4 1182
离开以前
离开以前 2020-12-15 03:16

As part of the ASP.NET MVC 2 Beta 2 update, JSON GET requests are disallowed by default. It appears that you need to set the JsonRequestBehavior field to

4条回答
  •  青春惊慌失措
    2020-12-15 04:05

    HTTP GET is disabled by default as part of ASP.NET's Cross-Site Request Forgery (CSRF/XSRF) protections. If your web services accept GET requests, then they can be vulnerable to 3rd party sites making requests via

提交回复
热议问题