From 422e1a3d1d1c6c6eb89467ec2abd5bd95f8ba87a Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Wed, 23 Feb 2022 11:23:14 +0000 Subject: [PATCH] Use cors middleware. --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 51d4eb5..4a8976e 100644 --- a/main.go +++ b/main.go @@ -12,6 +12,7 @@ import ( "time" "github.com/gofiber/fiber/v2" + "github.com/gofiber/fiber/v2/middleware/cors" "github.com/gofiber/fiber/v2/middleware/etag" "github.com/google/go-github/v42/github" "golang.org/x/oauth2" @@ -154,6 +155,7 @@ func main() { go monitorInstances() app := fiber.New() + app.Use(cors.New()) app.Use(etag.New()) app.Get("/", func(c *fiber.Ctx) error {