Merge pull request #4551 from gkrizek/cors
lnd: Add CORS support to the WalletUnlocker proxy
This commit is contained in:
2 files changed
+9
-8
No files matched your search
@@ -1012,7 +1012,7 @@ func waitForWalletPassword(cfg *Config, restEndpoints []net.Addr,
|
||||
return nil, err
|
||||
}
|
||||
|
||||
srv := &http.Server{Handler: mux}
|
||||
srv := &http.Server{Handler: allowCORS(mux, cfg.RestCORS)}
|
||||
|
||||
for _, restEndpoint := range restEndpoints {
|
||||
lis, err := lncfg.TLSListenOnAddress(restEndpoint, tlsConf)
|
||||
|
||||
Reference in new issue
Block a user