作者 唐旭辉

配置跳正

@@ -91,7 +91,7 @@ var AllowOption = func(ctx *context.Context) { @@ -91,7 +91,7 @@ var AllowOption = func(ctx *context.Context) {
91 AllowHeaders: []string{"Origin", "Accept", "Content-Type", "Authorization", 91 AllowHeaders: []string{"Origin", "Accept", "Content-Type", "Authorization",
92 "x-mmm-cid", "x-mmm-uid", "x-mmm-accesstoken", "x-mmm-refreshtoken", "x-requested-with"}, //允许的头部信息 92 "x-mmm-cid", "x-mmm-uid", "x-mmm-accesstoken", "x-mmm-refreshtoken", "x-requested-with"}, //允许的头部信息
93 ExposeHeaders: []string{"Content-Length"}, //允许暴露的头信息 93 ExposeHeaders: []string{"Content-Length"}, //允许暴露的头信息
94 - AllowCredentials: true, //不允许共享AuthTuffic证书 94 + AllowCredentials: false, //不允许共享AuthTuffic证书
95 AllowAllOrigins: true, //允许的请求来源 95 AllowAllOrigins: true, //允许的请求来源
96 }) 96 })
97 f(ctx) 97 f(ctx)