...
|
...
|
@@ -239,6 +239,7 @@ func CheckUuid(ctx *context.Context) (result bool) { |
|
|
//AllowOption 允许跨域请求
|
|
|
var AllowOption = func(ctx *context.Context) {
|
|
|
if ctx.Request.Method != "OPTIONS" {
|
|
|
log.Debug(fmt.Sprintf("receive:%v method:%v", ctx.Request.RequestURI, ctx.Request.Method))
|
|
|
return
|
|
|
}
|
|
|
f := cors.Allow(&cors.Options{
|
...
|
...
|
|