From c841de1f62846c4bf8cb0b2905399cb1e4c22fda Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Mon, 26 Mar 2018 17:10:41 -0700 Subject: [PATCH] etcdserver: add "CORS" field to "ServerConfig" Signed-off-by: Gyuho Lee --- etcdserver/config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etcdserver/config.go b/etcdserver/config.go index dedd6b484..70dbf944b 100644 --- a/etcdserver/config.go +++ b/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.