Skip to content

Commit

Permalink
fix: fixed csrf issue
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Jul 2, 2022
1 parent 1ee753f commit cbbf682
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ class Web {

try {
await csrf(ctx, next);
ctx.state.csrf = ctx.csrf;
} catch (err) {
ctx.logger.error(err);
let error = err;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@ladjs/koa-simple-ratelimit": "^3.0.0",
"@ladjs/redis": "^1.0.7",
"@ladjs/shared-config": "^7.0.3",
"@ladjs/state-helper": "^2.0.1",
"@ladjs/state-helper": "^2.0.2",
"@ladjs/store-ip-address": "^0.0.7",
"boolean": "^3.2.0",
"cabin": "^9.1.2",
Expand Down

0 comments on commit cbbf682

Please sign in to comment.