Commit 81234a59 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Use CORS compatible requests

parent a7a48382
......@@ -535,7 +535,7 @@ var run = function () {
url = url.replace(/^ipfs:\/\/?/, 'ipfs/')
$('#output').append($('<div/>').append($('<pre/>').text('Loading ' + url + ' ...')))
return $.get('https://gateway.ipfs.io/' + url)
return $.ajax({ type: 'GET', url: 'https://gateway.ipfs.io/' + url })
.done(function (data) {
cb(null, data)
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment