sent
ERROR Cannot set headers after they are sent to the client 19:45:52
at ServerResponse.setHeader (_http_outgoing.js:470:11)
at ServerResponse.writeHead (_http_server.js:232:21)
at Object.opts [as next] (.nuxt/server.js:45:0)
at app.context.redirect (.nuxt/utils.js:166:0)
at module.exports../plugins/axios.js.__webpack_exports__.default.$axios.onError.error (plugins/axios.js:33:0)
at interceptors.response.use.error (.nuxt/axios.js:31:0)
at process._tickCallback (internal/process/next_tick.js:68:7)
описать interceptor (динамически) в midleware, там есть доступ и к инстансу axios, и к route
Обсуждают сегодня