etcdserver: add "CORS" field to "ServerConfig"

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
release-3.4
Gyuho Lee 2018-03-26 17:10:41 -07:00
parent 29db853317
commit c841de1f62
1 changed files with 2 additions and 0 deletions

View File

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