Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HelpMessage ¶
func HelpMessage() string
HelpMessage returns a string containing information on setting up this CORS middleware.
func Initialize ¶
Initialize starts the CORS middleware for a http.Handler when cors is enabled.
func IsEnabled ¶ added in v0.0.39
func IsEnabled(l logrus.FieldLogger, prefix string) bool
IsEnabled returns true when CORS is enabled.
func ParseOptions ¶
func ParseOptions(l logrus.FieldLogger, prefix string) cors.Options
ParseOptions parses CORS settings by using the `viper` framework.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.