All checks were successful
/ DCO (pull_request) Successful in 33s
/ Vulncheck (pull_request) Successful in 41s
/ Builds (pull_request) Successful in 1m13s
/ OCI image (pull_request) Successful in 1m29s
/ Lint (pull_request) Successful in 2m30s
/ Tests (pull_request) Successful in 1m8s
/ Integration tests (pull_request) Successful in 5m42s
Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
18 lines
736 B
Go
18 lines
736 B
Go
package data
|
|
|
|
type (
|
|
// CORSConfiguration stores CORS configuration of a request.
|
|
CORSConfiguration struct {
|
|
CORSRules []CORSRule `xml:"CORSRule" json:"CORSRules"`
|
|
}
|
|
|
|
// CORSRule stores rules for CORS configuration.
|
|
CORSRule struct {
|
|
AllowedHeaders []string `xml:"AllowedHeader" json:"AllowedHeaders"`
|
|
AllowedMethods []string `xml:"AllowedMethod" json:"AllowedMethods"`
|
|
AllowedOrigins []string `xml:"AllowedOrigin" json:"AllowedOrigins"`
|
|
ExposeHeaders []string `xml:"ExposeHeader" json:"ExposeHeaders"`
|
|
MaxAgeSeconds int `xml:"MaxAgeSeconds,omitempty" json:"MaxAgeSeconds,omitempty"`
|
|
AllowedCredentials bool `xml:"AllowedCredentials,omitempty" json:"AllowedCredentials,omitempty"`
|
|
}
|
|
)
|