I am testing with IPFS and http but I have an error as follows:
App.js:239 ipfs add error DOMException: Only secure origins are allowed (see: https://goo.gl/Y0ZkNV).
I have this code -
var zstr = 'hello world from Zillerium2'
this.IpfsAPI.add(new Buffer(zstr), function (err, res){
console.log("hello");
if(err || !res) return console.error("ipfs add error", err, res);
else{
console.log("no issue");
console.log(res);
res.forEach(function(text) {
console.log('successfully stored', text.hash);
// console.log('successfully stored', text.path);
// display(file.Hash);
var textaddress=text.hash;
console.log(textaddress);
});
}
});
I understand from the IPFS forum that https is not needed for API calls, so is there a config to set or something to rid the system of this error?