![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
koa
一只正在成长的程序猿
https://wgjh5.github.io/
展开
-
nodejs实现发送邮件之(koa篇)
Nodemailer简介 Nodemailer是一个简单易用的Node.js邮件发送组件 官网地址:https://nodemailer.com GitHub地址:https://github.com/nodemailer/nodemailer Nodemailer的主要特点包括: 支持Unicode编码 支持Window系统环境 支持HTML内容和普通文本内容 支持附件(传送大附件) 支持HT...原创 2020-01-10 11:03:19 · 1035 阅读 · 1 评论 -
koa解决跨域的方法
1.自行添加一个中间件 app.use(async (ctx, next)=> { ctx.set('Access-Control-Allow-Origin', '*'); ctx.set('Access-Control-Allow-Headers', 'Content-Type, Content-Length, Authorization, Accept, X-Requested-...原创 2020-01-10 11:02:42 · 507 阅读 · 1 评论