Versions in this module Expand all Collapse all v3 v3.8.0 May 1, 2026 Changes in this version + type Config struct + CORSRules []Rule + XMLNS string + XMLName xml.Name + func ParseBucketCorsConfig(reader io.Reader) (*Config, error) + func (c *Config) Validate() error + func (c Config) ToXML() ([]byte, error) + type ErrAllowedHeaderWildcards struct + Header string + func (e ErrAllowedHeaderWildcards) Error() string + type ErrAllowedOriginWildcards struct + Origin string + func (e ErrAllowedOriginWildcards) Error() string + type ErrInvalidMethod struct + Method string + func (e ErrInvalidMethod) Error() string + type ErrMalformedXML struct + func (e ErrMalformedXML) Error() string + type ErrTooManyRules struct + func (e ErrTooManyRules) Error() string + type Rule struct + AllowedHeader []string + AllowedMethod []string + AllowedOrigin []string + ExposeHeader []string + ID string + MaxAgeSeconds int + func (c *Rule) FilterAllowedHeaders(headers []string) ([]string, bool) + func (c *Rule) HasAllowedMethod(method string) bool + func (c *Rule) HasAllowedOrigin(origin string) bool