mirror of
https://github.com/gofiber/fiber.git
synced 2025-07-11 04:58:58 +00:00
14 lines
252 B
Go
14 lines
252 B
Go
package middleware
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/gofiber/fiber"
|
|
)
|
|
|
|
// Cors : Enable cross-origin resource sharing (CORS) with various options.
|
|
func Cors(c *fiber.Ctx) {
|
|
fmt.Println("Cors is still under development, disable until v1.0.0")
|
|
c.Next()
|
|
}
|