postman
body-->raw-->JSON
web安全概念
POST & JSON
https://www.cnblogs.com/xgqfrms/p/12860441.html
## CSRF 攻击:伪造用户请求向网站发起恶意请求。
> message: "invalid csrf token"
https://eggjs.org/zh-cn/core/security.html#安全威胁csrf的防范
https://eggjs.org/zh-cn/core/security.html#安全威胁-csrf-的防范
```js
// CSRF
// config/config.default.js
// module.exports = {
// security: {
// csrf: {
// ignoreJSON: true, // 默认为 false,当设置为 true 时,将会放过所有 content-type 为 `application/json` 的请求
// },
// },
// };
config.security = {
csrf: {
enable: false,
},
};
```
```js
// config/config.default.js
module.exports = {
security: {
csrf: {
ignoreJSON: true, // 默认为 false,当设置为 true 时,将会放过所有 content-type 为 `application/json` 的请求
},
},
};
```
POST
HTTP methods
https://en.wikipedia.org/wiki/Create,_read,_update_and_delete
head
options
put
post
patch
delete