Optimize maligned structs

This commit is contained in:
Nitin Mohan
2021-03-08 12:44:14 +05:30
parent 7909fb5ff3
commit f554a1c543
12 changed files with 91 additions and 88 deletions

View File

@@ -69,10 +69,10 @@ var (
type Options struct {
// If set, all origins are allowed.
AllowAllOrigins bool
// A list of allowed origins. Wild cards and FQDNs are supported.
AllowOrigins []string
// If set, allows to share auth credentials such as cookies.
AllowCredentials bool
// A list of allowed origins. Wild cards and FQDNs are supported.
AllowOrigins []string
// A list of allowed HTTP methods.
AllowMethods []string
// A list of allowed HTTP headers.