Skip to content

Commit ec75964

Browse files
committed
f
1 parent 7b357c1 commit ec75964

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎src/app.ts‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,8 @@ export default class AgentBoot implements ILifecycleBoot {
1818
if (app.config.security.csrf.enable) {
1919
const { ignoreJSON } = app.config.security.csrf;
2020
if (ignoreJSON) {
21-
app.deprecate('[@eggjs/security/app] `app.config.security.csrf.ignoreJSON` is not safe now, please disable it.');
21+
app.deprecate('[@eggjs/security/app] `config.security.csrf.ignoreJSON` is not safe now, please disable it.');
2222
}
23-
24-
// const legalTypes = [ 'all', 'referer', 'ctoken', 'any' ];
25-
// assert(legalTypes.includes(type),
26-
// '[@eggjs/security/ap] `config.security.csrf.type` must be one of ' + legalTypes.join(', '));
2723
}
2824

2925
preprocessConfig(app.config.security);

0 commit comments

Comments
 (0)