config+lnd+rpcserver: add CORS origin config for REST

This commit is contained in:
Anthony Ronning
2020-04-06 15:16:02 +02:00
committed by Oliver Gugger
parent 6250ed1cf1
commit a76e752f3b
2 changed files with 55 additions and 1 deletions

View File

@@ -159,6 +159,7 @@ type Config struct {
RawExternalIPs []string `long:"externalip" description:"Add an ip:port to the list of local addresses we claim to listen on to peers. If a port is not specified, the default (9735) will be used regardless of other parameters"`
RPCListeners []net.Addr
RESTListeners []net.Addr
RestCORS []string `long:"restcors" description:"Add an ip:port/hostname to allow cross origin access from. To allow all origins, set as \"*\"."`
Listeners []net.Addr
ExternalIPs []net.Addr
DisableListen bool `long:"nolisten" description:"Disable listening for incoming peer connections"`