package
Version:
v1.0.9
Opens a new window with list of versions in this module.
Published: Dec 30, 2024
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 Cors = 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 CorsAllowAll = cors.Config{
AllowOrigins: "*",
AllowHeaders: strings.Join(headers, ","),
AllowMethods: "GET, POST, PUT, PATCH, DELETE",
ExposeHeaders: "Content-Length",
MaxAge: int((2 * time.Hour).Seconds()),
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.