HDFGroup / h5serv

Reference service implementation of the HDF5 REST API
Other
168 stars 35 forks source link

use chrome ,error: spread.js:25 Refused to set unsafe header "host" #130

Closed luwei003 closed 4 years ago

luwei003 commented 4 years ago

axios.get('http://39.67.76.240:5000/datasets',{headers:{'host':"GeoModel.model.hdfgroup.org"}}) .then(function (response) { console.log(response.data); }) .catch(function (error) { console.log(error); });

luwei003 commented 4 years ago

How to solve this problem?Thanks