Versions in this module Expand all Collapse all v1 v1.14.2 Feb 25, 2025 Changes in this version + type CORS struct + AllowCredentials bool + AllowHeaders []string + AllowMethods []string + AllowOrigins []string + Enabled bool + ExposeHeaders []string + PreflightMaxAgeSeconds *int + PreflightRequestMethod string + func NewCORS() *CORS + func (c *CORS) EncodeAllowCredentialsHeader() string + func (c *CORS) EncodeAllowHeaders() string + func (c *CORS) EncodeExposeHeaders() string + func (c *CORS) EncodePreflightMaxAgeSeconds() string + func (c *CORS) EncodedAllowMethods() string + func (c *CORS) HeadersAllowed(headers []string) bool + func (c *CORS) MethodAllowed(method string) bool + func (c *CORS) OriginAllowed(origin string) bool