From 5a5a1ec8f2f48313cf373c36714695a0b51e0de6 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Fri, 19 May 2023 16:44:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/serverconfigs/shared/http_cors_header_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {