package
0.0.0-20240811142457-7e33354fa83f
Repository: https://github.com/hidevopsio/middleware.git
Documentation: pkg.go.dev
# Functions
Default returns a new cors per-route middleware with the default settings: allow all origins, allow methods: GET and POST.
New returns a new cors per-route middleware with the provided options.
WrapNext is the same as New but it is being used to wrap the entire iris' router, even before the method and path matching, i.e: app.WrapRouter(WrapNext(Options{...})).
# Type aliases
Options is a configuration container to setup the CORS.