api-platform / api-platform/core

[Security] Return an object instead of an array in collections

未关闭
#7,986 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
2.6k
派生
980
平均合并
2 天 5 小时
30 天内合并 PR
48

描述

Hi everyone,

what do you think about adding the option to return an object instead of an array in collections? I think it's a good practice in terms of security (see [OWASP](https://www.owasp.org/index.php/AJAX_Security_Cheat_Sheet#Always_return_JSON_with_an_Object_on_the_outside)).

Regards

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。