正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -118,7 +118,7 @@ var AllowOption = func(ctx *context.Context) { | @@ -118,7 +118,7 @@ var AllowOption = func(ctx *context.Context) { | ||
| 118 | f := cors.Allow(&cors.Options{ | 118 | f := cors.Allow(&cors.Options{ |
| 119 | AllowMethods: []string{"POST", "GET", "OPTIONS", "PUT", "DELETE"}, //允许的请求类型 | 119 | AllowMethods: []string{"POST", "GET", "OPTIONS", "PUT", "DELETE"}, //允许的请求类型 |
| 120 | AllowHeaders: []string{"Origin", "Accept", "Content-Type", "Authorization", | 120 | AllowHeaders: []string{"Origin", "Accept", "Content-Type", "Authorization", |
| 121 | - "x-mmm-cid", "x-mmm-uid", "x-mmm-accesstoken", "x-mmm-refreshtoken", "x-requested-with"}, //允许的头部信息 | 121 | + "x-mmm-cid", "x-mmm-uid", "x-mmm-accesstoken", "x-mmm-refreshtoken", "x-requested-with", "x-mmm-appproject", "x-mmm-devicetype"}, //允许的头部信息 |
| 122 | ExposeHeaders: []string{"Content-Length"}, //允许暴露的头信息 | 122 | ExposeHeaders: []string{"Content-Length"}, //允许暴露的头信息 |
| 123 | AllowCredentials: false, //不允许共享AuthTuffic证书 | 123 | AllowCredentials: false, //不允许共享AuthTuffic证书 |
| 124 | AllowAllOrigins: true, //允许的请求来源 | 124 | AllowAllOrigins: true, //允许的请求来源 |
-
请 注册 或 登录 后发表评论