Open zxy198717 opened 4 years ago
we need custom cors policy in AllowOriginFunc, need use gin.context to get some request parameters, so hope to transfer gin.Context to AllowOriginFunc.
AllowOriginFunc
gin.Context
we need custom cors policy in
AllowOriginFunc
, need use gin.context to get some request parameters, so hope to transfergin.Context
toAllowOriginFunc
.