eggjs / egg-security

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

dominWhiteList supports '*' and [ '*' ] #21

Closed brickyang closed 7 years ago

brickyang commented 7 years ago

You can use

config.security = {
  domainWhiteList: '*', // or [ '*' ]
};
mention-bot commented 7 years ago

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

codecov[bot] commented 7 years ago

Codecov Report

Merging #21 into master will increase coverage by 0.04%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #21      +/-   ##
=========================================
+ Coverage   95.86%   95.9%   +0.04%     
=========================================
  Files          26      26              
  Lines         435     440       +5     
=========================================
+ Hits          417     422       +5     
  Misses         18      18
Impacted Files Coverage Δ
app/extend/context.js 100% <100%> (ø) :arrow_up:

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 4db1186...ac2516c. Read the comment docs.

popomore commented 7 years ago

This is a whiteList,we don't support *