diff --git a/pkg/serverconfigs/shared/http_cors_header_config.go b/pkg/serverconfigs/shared/http_cors_header_config.go index 0683403..edf96eb 100644 --- a/pkg/serverconfigs/shared/http_cors_header_config.go +++ b/pkg/serverconfigs/shared/http_cors_header_config.go @@ -12,7 +12,7 @@ type HTTPCORSHeaderConfig struct { MaxAge int32 `yaml:"maxAge" json:"maxAge"` RequestHeaders []string `yaml:"requestHeaders" json:"requestHeaders"` // TODO RequestMethod string `yaml:"requestMethod" json:"requestMethod"` - OptionsMethodOnly bool `yaml:"optionsMethodOnly" json:"optionsMethodOnly"` + OptionsMethodOnly bool `yaml:"optionsMethodOnly" json:"optionsMethodOnly"` // 是否仅支持OPTIONS方法 } func NewHTTPCORSHeaderConfig() *HTTPCORSHeaderConfig {