diff --git a/lib/core/storage.js b/lib/core/storage.js index a99720dae..19b69cd41 100644 --- a/lib/core/storage.js +++ b/lib/core/storage.js @@ -183,7 +183,7 @@ export default class Storage { } getCookie (key, isJson) { - if (!this.options.cookie) { + if (!this.options.cookie || !this.ctx.req) { return }