Relative Content

Tag Archive for gocorsgo-gin

Gin cors middleware not working with Group()

When using gin-contrib/cors middleware directly in the default router, it works perfectly fine for any url, but when I create a group using r.Group(“/api”), the cors does not apply to any of the route in that group.