cors

package
v0.0.0-...-810cc64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2017 License: MIT, MIT Imports: 2 Imported by: 0

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

type Options

type Options cors.Options

Options is a configuration container to setup the CORS. All Options are working EXCEPT on some routers (and the iris' default) AllowMethods field is not working.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL