Versions in this module Expand all Collapse all v1 v1.8.2 Nov 9, 2021 Changes in this version type Cors + func (c *Cors) OriginAllowed(r *http.Request) bool + type Logger interface + Printf func(string, ...interface{}) type Options + AllowOriginRequestFunc func(r *http.Request, origin string) bool v1.3.0 Jan 23, 2018 Changes in this version + type Cors struct + Log *log.Logger + func AllowAll() *Cors + 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 + OptionsPassthrough bool