Versions in this module Expand all Collapse all v1 v1.2.1 Aug 23, 2024 Changes in this version + func Handler(options Options) func(next http.Handler) http.Handler + type Cors struct + Log Logger + func AllowAll() *Cors + func New(options Options) *Cors + func (c *Cors) Handler(next http.Handler) http.Handler + type Logger interface + Printf func(string, ...interface{}) + type Options struct + AllowCredentials bool + AllowOriginFunc func(r *http.Request, origin string) bool + AllowPrivateNetwork bool + AllowedHeaders []string + AllowedMethods []string + AllowedOrigins []string + Debug bool + ExposedHeaders []string + MaxAge int + OptionsPassthrough bool