mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 21:50:26 +08:00 
			
		
		
		
	优化代码
This commit is contained in:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user