diff --git a/server/proxy.js b/server/proxy.js index e5be7088eca..702916cee06 100644 --- a/server/proxy.js +++ b/server/proxy.js @@ -142,7 +142,7 @@ const oauthProxy = { changeOrigin: true, optionsHandle(options, req, ctx) { // if not login, redirect to login page - if (!ct.cookies.get('token')) { + if (!ctx.cookies.get('token')) { ctx.cookies.set('authAuthorizeUrl', req.url); } },