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") })