摘要: await ctx.render('from',{csrf:this.ctx.csrf}); 或者 使用全局中间件 ctx.state.csrf = ctx.csrf;这样每次提交表单都会校验这个值 阅读全文
posted @ 2020-01-29 22:43 kgwei 阅读(562) 评论(0) 推荐(0)