jQuery AJAX JSON response returns key “d”

2019-04-08 02:05发布

问题:

When I make a jQuery AJAX JSON request, it responds with a "d" attribute.

Why is this?

回答1:

here a good article about it http://encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/

“.d” what? If you aren’t familiar with the “.d” I’m referring to, it is simply a security feature that Microsoft added in ASP.NET 3.5’s version of ASP.NET AJAX. By encapsulating the JSON response within a parent object, the framework helps protect against a particularly nasty XSS vulnerability.



回答2:

If you aren’t familiar with the “.d” I’m referring to, it is simply a security feature that Microsoft added in ASP.NET 3.5’s version of ASP.NET AJAX. By encapsulating the JSON response within a parent object, the framework helps protect against a particularly nasty XSS vulnerability.