瀏覽代碼

etcdserver: add "CORS" field to "ServerConfig"

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 8 年之前
父節點
當前提交
c841de1f62
共有 1 個文件被更改,包括 2 次插入 和 0 次删除
  1. 2 0
      etcdserver/config.go

+ 2 - 0
etcdserver/config.go

@@ -46,6 +46,8 @@ type ServerConfig struct {
 	NewCluster          bool
 	PeerTLSInfo         transport.TLSInfo
 
+	CORS map[string]struct{}
+
 	// HostWhitelist lists acceptable hostnames from client requests.
 	// If server is insecure (no TLS), server only accepts requests
 	// whose Host header value exists in this white list.