I have a problem with flickr public API, this code:
fetch('https://api.flickr.com/services/feeds/photos_public.gne?format=json&nojsoncallback=1&per_page=9&tags=Porsche', {
headers: {
'Accept' : 'application/json',
'Content-Type' : 'application/json'
},
mode: 'no-cors',
})
.then(data => {
return data.json();
})
returns Unexpected end of input
in the browser console. What is wrong with this code?