# README
CORS
Use
type Cors very.HandlerFunc
func NewCors() Cors {
return cors.New(cors.Config{
AllowOrigins: []string{"*"},
AllowMethods: []string{"*"},
AllowHeaders: []string{
"Origin",
"Content-Length",
"Content-Type",
"Access-Token",
"Access-Control-Allow-Origin",
"x-requested-with",
},
AllowCredentials: true,
MaxAge: 12 * time.Hour,
})
}
# Functions
Default returns the location middleware with default configgeetion.
DefaultConfig returns a generic default configuration mapped to localhost.
New returns the location middleware with user-defined custom configuration.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author