Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORSMiddleware ¶
func CORSMiddleware(config CORSConfig) echo.MiddlewareFunc
CORSMiddleware creates a performant CORS middleware that dynamically handles unsafe allow all origins configuration
func IsOriginAllowed ¶ added in v2.54.0
IsOriginAllowed reports whether origin appears in the configured allow list.
Types ¶
type CORSConfig ¶
type CORSConfig struct {
AllowHeaders []string
AllowCredentials bool
ConfigProvider config.ConfigProvider
}
CORSConfig holds the configuration for CORS middleware
Click to show internal directories.
Click to hide internal directories.