Merge pull request #4551 from gkrizek/cors

lnd: Add CORS support to the WalletUnlocker proxy
This commit is contained in:
Oliver Gugger authored and GitHub committed 2020-08-25 09:31:40 +02:00
commit fac3c84806
2 files changed
+9 -8

No files matched your search

+1 -1
View File
@@ -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)