Versions in this module Expand all Collapse all v0 v0.3.5 Jun 12, 2015 Changes in this version + type Cors struct + func Default() *Cors + func New(options Options) *Cors + func (c *Cors) Handler(h http.Handler) http.Handler + func (c *Cors) HandlerFunc(w http.ResponseWriter, r *http.Request) + func (c *Cors) ServeHTTP(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) + type Options struct + AllowCredentials bool + AllowOriginFunc func(origin string) bool + AllowedHeaders []string + AllowedMethods []string + AllowedOrigins []string + Debug bool + ExposedHeaders []string + MaxAge int