Skip to content

Commit bd98913

Browse files
committed
json数据解析设置
1 parent 68abc25 commit bd98913

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ composer require windhoney/yii2-rest-rbac
5454
'groupTable' => 'auth_groups',//选填,分组表(已默认,可根据自己表名修改)
5555
'groupChildTable' => 'auth_groups_child',//选填,分组子表(已默认,可根据自己表名修改)
5656
],
57+
'request' => [
58+
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
59+
//'cookieValidationKey' => 'xxxxxxxx',
60+
'parsers' => [
61+
'application/json' => 'yii\web\JsonParser',
62+
'text/json' => 'yii\web\JsonParser',
63+
],
64+
],
5765
]
5866
```
5967
* **配置权限**

0 commit comments

Comments
 (0)