Suggest: use window.location to get host and port for API, make easy for visit from other machine #940
Labels
effort/hours
Estimated to take one or several hours
exp/wizard
Extensive knowledge (implications, ramifications) required
kind/enhancement
A net-new feature or improvement to an existing feature
P1
High: Likely tackled by core team if no one steps up
status/ready
Ready to be worked
Milestone
Expose API, Allow CORS:
Visit webui from other machine. I must use
localStorage.setItem('ipfsApi', '/ip4/node_ip/tcp/5001')
to change the API. And its not work when use domain name.Why not use
window.location.hostname
to get the host,window.location.port
to get the port?Port of webui always same as API port. Visit
http://192.168.1.6:5001/webui
, means: i need to use/ip4/192.168.1.6/tcp/5001
API. This is in line with expected behavior. And no need:Is your API on a port other than 5001?
set form.Wrong gateway address when click a mp4 file
Click Files Tab, then click mp4 file. webui use
http://0.0.0.0:6001/ipfs/QmY8Xhcn8JS79QwJXCW95Lbqp4EoJap9pqfaAFGyRfjSyz
as source:Its better to use:
The text was updated successfully, but these errors were encountered: