AllowedDomains[]string// list of allowed values for Http Origin. If empty all are allowed.
AllowedDomains[]string// list of allowed values for Http Origin. An allowed value can be a regular expression to support subdomain matching. If empty all are allowed.
AllowedMethods[]string
AllowedMethods[]string
MaxAgeint// number of seconds before requiring new Options request
MaxAgeint// number of seconds before requiring new Options request
CookiesAllowedbool
CookiesAllowedbool
Container*Container
Container*Container
allowedOriginPatterns[]*regexp.Regexp// internal field for origin regexp check.
}
}
// Filter is a filter function that implements the CORS flow as documented on http://enable-cors.org/server.html
// Filter is a filter function that implements the CORS flow as documented on http://enable-cors.org/server.html