标签:div 验证 svg async session col code control har
var svgCaptcha = require(‘svg-captcha‘); session.code = [] router.get(‘/bb‘, async (ctx, next) => { ctx.set(‘Access-Control-Allow-Origin‘, ‘*‘); var captcha = svgCaptcha.createMathExpr({ ignoreChars: ‘0o1i‘, color:false, noise:0 }); session.code.push(captcha.text) ctx.body = captcha })
标签:div 验证 svg async session col code control har
原文地址:https://www.cnblogs.com/fm060/p/12910954.html