Registry / web-framework / gin-contrib-cors

gin-contrib-cors

JSON →
library1.7.7gogounverified

CORS middleware for the Gin web framework.

go get github.com/gin-contrib/cors
INSTALL
IMPORT
SIG · GIN-CONTRIB-CORS
G
gin-contrib-cors
web-frameworkgov1.7.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cors
github.com/gin-contrib/cors

Adds default CORS headers to all routes.

package main import ( "github.com/gin-gonic/gin" "github.com/gin-contrib/cors" ) func main() { r := gin.Default() r.Use(cors.Default()) r.Run() }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.7.7latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
gin-contrib-cors — go get gin-contrib-cors · libregistry