iptables-helper/internel/middleware/cors.go

11 lines
174 B
Go
Raw Normal View History

2023-11-02 02:49:07 +08:00
package middleware
import (
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/cors"
)
func UseCorsMiddleWare(app *fiber.App) {
app.Use(cors.New())
}