正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -61,7 +61,7 @@ func init() { | @@ -61,7 +61,7 @@ func init() { | ||
61 | 61 | ||
62 | web.BConfig.Listen.HTTPSCertFile = "./config/fjmaimaimai.com_bundle.crt" | 62 | web.BConfig.Listen.HTTPSCertFile = "./config/fjmaimaimai.com_bundle.crt" |
63 | web.BConfig.Listen.HTTPSKeyFile = "./config/fjmaimaimai.com.key" | 63 | web.BConfig.Listen.HTTPSKeyFile = "./config/fjmaimaimai.com.key" |
64 | - web.InsertFilter("/*", web.BeforeExec, filters.AllowCors()) | 64 | + web.InsertFilter("/*", web.BeforeRouter, filters.AllowCors()) |
65 | web.InsertFilter("/*", web.BeforeExec, filters.CreateRequstLogFilter(Logger)) | 65 | web.InsertFilter("/*", web.BeforeExec, filters.CreateRequstLogFilter(Logger)) |
66 | web.InsertFilter("/*", web.AfterExec, filters.CreateResponseLogFilter(Logger), web.WithReturnOnOutput(false)) | 66 | web.InsertFilter("/*", web.AfterExec, filters.CreateResponseLogFilter(Logger), web.WithReturnOnOutput(false)) |
67 | } | 67 | } |
-
请 注册 或 登录 后发表评论