jQuery AJAX JSON response returns key “d”

2019-04-08 02:29发布

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

Why is this?

2条回答
小情绪 Triste *
2楼-- · 2019-04-08 02:50

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.

查看更多
小情绪 Triste *
3楼-- · 2019-04-08 03:04

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.

查看更多
登录 后发表回答