Go-ipfs private network (pnet) webui errored with downloading file

Cause: Download a file from webui on private network.

Error:
Access to XMLHttpRequest at ‘http://0.0.0.0:8080/ipfs/QmS4ZbBukKg3yWLnRaEyHQ2CsqRYsRyfdtkbkCQfDow2QM’ from origin ‘http://server-addr:5001’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Cors-config:
“HTTPHeaders”: {
“Access-Control-Allow-Methods”: [
“PUT”,
“POST”,
“GET”
],
“Access-Control-Allow-Origin”: [
“server-addr:5001”,
“server-addr:8080”,
“0.0.0.0:8080”,
“127.0.0.1:5001”,
“127.0.0.1:8080”,
“localhost:3000”,
“/webui.ipfs.io”,
“/dev.webui.ipfs.io”
]
}
},

Address:
“Addresses”: {
“API”: “/ip4/0.0.0.0/tcp/5001”,
“Announce”: [],
“Gateway”: “/ip4/0.0.0.0/tcp/8080”,
“NoAnnounce”: [
“/ip4/10.0.0.0/ipcidr/8”,
“/ip4/100.64.0.0/ipcidr/10”,
“/ip4/169.254.0.0/ipcidr/16”,
“/ip4/172.16.0.0/ipcidr/12”,
“/ip4/192.0.0.0/ipcidr/24”,
“/ip4/192.0.0.0/ipcidr/29”,
“/ip4/192.0.0.8/ipcidr/32”,
“/ip4/192.0.0.170/ipcidr/32”,
“/ip4/192.0.0.171/ipcidr/32”,
“/ip4/192.0.2.0/ipcidr/24”,
“/ip4/192.168.0.0/ipcidr/16”,
“/ip4/198.18.0.0/ipcidr/15”,
“/ip4/198.51.100.0/ipcidr/24”,
“/ip4/203.0.113.0/ipcidr/24”,
“/ip4/240.0.0.0/ipcidr/4”
],
“Swarm”: [
“/ip4/0.0.0.0/tcp/4001”,
“/ip6/::/tcp/4001”
]
},