Registry / web-framework / itsjamie-gin-cors

itsjamie-gin-cors

JSON →
library0.0.0-20220228161158-ef28d3d2a0a8gogounverified

Implements CORS (Cross-Origin Resource Sharing) middleware for the Gin web framework.

go get github.com/itsjamie/gin-cors
INSTALL
IMPORT
SIG · ITSJAMIE-GIN-CORS
I
itsjamie-gin-cors
web-frameworkgov0.0.0-20220228161158-ef28d3d2a0a8
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/itsjamie/gin-cors

Add CORS middleware to a Gin router.

import "github.com/itsjamie/gin-cors" r := gin.Default() r.Use(cors.Middleware(cors.Config{ Origins: "*", Methods: "GET, POST", }))
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20220228161158-ef28d3d2a0a8latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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