koa-解决跨域问题

npm install koa2-cors

app.use(cors({
  origin:['http://localhost:9528'],
  credentials:true //证书
}))

 

posted on 2020-04-16 09:13  秃了头也不退休  阅读(561)  评论(0)    收藏  举报

导航