diff --git a/main.go b/main.go index fe44244..7e9b8ee 100644 --- a/main.go +++ b/main.go @@ -5,6 +5,7 @@ import ( "encoding/base64" "fmt" "github.com/gofiber/fiber/v2" + "github.com/gofiber/fiber/v2/middleware/cors" "net/http" "os/exec" "strings" @@ -37,6 +38,7 @@ func base64Encoder(input []byte) string { func main() { app := fiber.New() + app.Use(cors.New()) app.Get("/", func(c *fiber.Ctx) error { return c.JSON(fiber.Map{ "status": "true",