eggjs / egg-security

Security plugin for egg, force performance too.
MIT License
238 stars 43 forks source link

feat: add ctx.rotateCsrfToken #13

Closed dead-horse closed 7 years ago

dead-horse commented 7 years ago

https://github.com/eggjs/egg/issues/434

mention-bot commented 7 years ago

@dead-horse, thanks for your PR! By analyzing the history of the files in this pull request, we identified @jtyjty99999, @shaoshuai0102 and @fengmk2 to be potential reviewers.

codecov[bot] commented 7 years ago

Codecov Report

Merging #13 into master will increase coverage by 0.12%. The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #13      +/-   ##
==========================================
+ Coverage   96.26%   96.39%   +0.12%     
==========================================
  Files          25       25              
  Lines         428      471      +43     
==========================================
+ Hits          412      454      +42     
- Misses         16       17       +1
Impacted Files Coverage Δ
lib/middlewares/csrf.js 100% <100%> (ø) :white_check_mark:
app/extend/context.js 100% <100%> (ø) :white_check_mark:
lib/helper/shtml.js 94% <0%> (-0.88%) :x:
config/config.default.js 100% <0%> (ø) :white_check_mark:
lib/helper/surl.js 96.15% <0%> (+0.91%) :white_check_mark:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 84c4189...d175afe. Read the comment docs.

shaoshuai0102 commented 7 years ago

加个用例?

dead-horse commented 7 years ago

这个再看看

shaoshuai0102 commented 7 years ago

+ egg-security@1.7.0