trying to get some photos from https://jsonplaceholder.typicode.com/ api
But I get back CORS error in the console.
fetch('https://jsonplaceholder.typicode.com/photos/')
.then(response => response.json())
.then(json => console.log(json))
What's happening i don't know. Maybe anybody knows what is happening here?
if to try get users list then it is ok I get all list of users.
I don't see any Access-Control-Allow-Origin respoonse header when I visit that URL
this.page.current=this.page.current+1;
this.page.current = String(Number(this.page.current) + 1);
i need one cool help
Обсуждают сегодня