m.Handlers(func(ctx *macaron.Context) {
   ctx.Resp.Header().Set("Access-Control-Allow-Origin","*")
   ctx.Resp.Header().Set("Access-Control-Allow-Headers", "content-type,token")
   ctx.Resp.Header().Set("Access-Control-Allow-Methods", "POST, OPTIONS, GET, PUT")
})

  

相关文章:

  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2021-04-07
猜你喜欢
  • 2021-06-11
  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2022-01-04
相关资源
相似解决方案