Registry / web-framework / gofiber-cors

gofiber-cors

JSON →
library0.2.2gogounverified

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

go get github.com/gofiber/cors
INSTALL
IMPORT
SIG · GOFIBER-CORS
G
gofiber-cors
web-frameworkgov0.2.2
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/gofiber/cors

Adds CORS middleware to a Fiber application.

package main import ( "github.com/gofiber/fiber/v2" "github.com/gofiber/cors" ) func main() { app := fiber.New() app.Use(cors.New()) app.Get("/", func(c *fiber.Ctx) error { return c.SendString("Hello, World!") }) app.Listen(":3000") }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
gofiber-cors — go get gofiber-cors · libregistry