We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b357c1 commit ec75964Copy full SHA for ec75964
1 file changed
src/app.ts
@@ -18,12 +18,8 @@ export default class AgentBoot implements ILifecycleBoot {
18
if (app.config.security.csrf.enable) {
19
const { ignoreJSON } = app.config.security.csrf;
20
if (ignoreJSON) {
21
- 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.');
22
}
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(', '));
27
28
29
preprocessConfig(app.config.security);
0 commit comments