Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Jan 16, 2025
1 parent 7b357c1 commit ec75964
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@ export default class AgentBoot implements ILifecycleBoot {
if (app.config.security.csrf.enable) {
const { ignoreJSON } = app.config.security.csrf;
if (ignoreJSON) {
app.deprecate('[@eggjs/security/app] `app.config.security.csrf.ignoreJSON` is not safe now, please disable it.');
app.deprecate('[@eggjs/security/app] `config.security.csrf.ignoreJSON` is not safe now, please disable it.');
}

// const legalTypes = [ 'all', 'referer', 'ctoken', 'any' ];
// assert(legalTypes.includes(type),
// '[@eggjs/security/ap] `config.security.csrf.type` must be one of ' + legalTypes.join(', '));
}

preprocessConfig(app.config.security);
Expand Down

0 comments on commit ec75964

Please sign in to comment.