优化代码

This commit is contained in:
GoEdgeLab
2023-05-19 16:44:02 +08:00
parent 7d90a3a77b
commit 5a5a1ec8f2

View File

@@ -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 {