Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Default ¶
func Default() iris.HandlerFunc
Default returns a new cors per-route middleware with the default settings: allow all origins, allow methods: GET and POST
func New ¶
func New(opts Options) iris.HandlerFunc
New returns a new cors per-route middleware with the provided options. Unlike the cors wrapper, this middleware can be registered to specific routes, Options.AllowedMethods is missing
Types ¶
Click to show internal directories.
Click to hide internal directories.