package
Version:
v1.2.3
Opens a new window with list of versions in this module.
Published: Feb 12, 2025
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var FiberCors = cors.Config{
AllowOrigins: strings.Join(origins, ","),
AllowHeaders: strings.Join(headers, ","),
AllowMethods: "GET, POST, PUT, PATCH, DELETE",
ExposeHeaders: "Content-Length",
AllowCredentials: true,
MaxAge: int((2 * time.Hour).Seconds()),
}
View Source
var FiberLocalCors = cors.Config{
AllowOrigins: "*",
AllowHeaders: strings.Join(headers, ","),
AllowMethods: "GET, POST, PUT, PATCH, DELETE",
ExposeHeaders: "Content-Length",
MaxAge: int((2 * time.Hour).Seconds()),
}
func JwtMiddleware() fiber.Handler
Source Files
¶
Click to show internal directories.
Click to hide internal directories.