mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: add "CORS" field to "ServerConfig"
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
29db853317
commit
c841de1f62
@ -46,6 +46,8 @@ type ServerConfig struct {
|
|||||||
NewCluster bool
|
NewCluster bool
|
||||||
PeerTLSInfo transport.TLSInfo
|
PeerTLSInfo transport.TLSInfo
|
||||||
|
|
||||||
|
CORS map[string]struct{}
|
||||||
|
|
||||||
// HostWhitelist lists acceptable hostnames from client requests.
|
// HostWhitelist lists acceptable hostnames from client requests.
|
||||||
// If server is insecure (no TLS), server only accepts requests
|
// If server is insecure (no TLS), server only accepts requests
|
||||||
// whose Host header value exists in this white list.
|
// whose Host header value exists in this white list.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user