Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler generate a cors.Cors object using Option parameter
Types ¶
type Option ¶
type Option func(*option)
func LocalEnvironment ¶
func LocalEnvironment() Option
LocalEnvironment enable AllowAll CORS for local development
func WithAllowedDomains ¶
WithAllowedDomains set the domains to be allowed
Click to show internal directories.
Click to hide internal directories.