Hi!
I am doing this fetch:
fetch("http://www.spekterfestival.no/wp-json/wp/v2/pages")
.then(function(result) {
if (result.status !== 200) {
debug_log("Something went wrong, status code: " + result.status);
return;
}
return result.json();
}).then(function(data) {
debug_log("Success!");
for (var i = 0; i < 10; i++) {
var item = data[i];
dataFromSpekter.add(item);
}
}).catch(function(error) {
debug_log("ErrorMessage: " + error);
});
On the local preview i get the data displayed, but on my iPhone I get:
TypeError: Network request failed
Any idea how to fix this?
Kristoffer