经过nginx代理实现koa在请求中携带cookie

最近在测试关于身份验证的实现过程和思路。以前的博客写的是使用token的方法将token存到redis数据库中。可是在几个github开源项目中看到有用cookie验证的因而就开始新的征程了...html 跨域(!!!ctx.headers.origin ctx.set('Access-Control-Allow-Credentials', 'true')必须设置)前端 app.use(async
相关文章
相关标签/搜索