gin-contrib / cors

Official CORS gin's middleware
https://gin-gonic.github.io/gin/
MIT License
1.79k stars 186 forks source link

need transfer gin.Context to AllowOriginFunc #64

Open zxy198717 opened 4 years ago

zxy198717 commented 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.