Skip to content

Commit

Permalink
chore: typo CSRF on router.md (#4962)
Browse files Browse the repository at this point in the history
  • Loading branch information
HomyeeKing committed Jun 4, 2022
1 parent e31c09c commit 7f1689f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/docs/basics/router.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ exports.post = async (ctx) => {
> If you perform a POST request directly, an **error** will occur: 'secret is missing'. This error message comes from [koa-csrf/index.js#L69](https://github.com/koajs/csrf/blob/2.5.0/index.js#L69).
> **Reason**: the framework verifies the CSFR value specially for form POST requests, so please submit the CSRF key as well when you submit a form. Refer to [Keep Away from CSRF Threat](https://eggjs.org/zh-cn/core/security.html#安全威胁csrf的防范) for more detail.
> **Reason**: the framework verifies the CSRF value specially for form POST requests, so please submit the CSRF key as well when you submit a form. Refer to [Keep Away from CSRF Threat](https://eggjs.org/zh-cn/core/security.html#安全威胁csrf的防范) for more detail.
> **Note**: the verification is performed because the framework builds in a security plugin [egg-security](https://github.com/eggjs/egg-security) that provides some default security practices and this plugin is enabled by default. In case you want to disable some security protections, just set the enable attribute to false.
Expand Down

1 comment on commit 7f1689f

@vercel
Copy link

@vercel vercel bot commented on 7f1689f Jun 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

egg – ./

egg-suyi.vercel.app
eggjs.org
egg-git-master-suyi.vercel.app
egg-pi.vercel.app
www.eggjs.org

Please sign in to comment.