Похожие чаты

I have a local server on localhost:8080 and I am

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.

4 ответов

15 просмотров

I don't see any Access-Control-Allow-Origin respoonse header when I visit that URL

Varun Gandhi
this.page.current=this.page.current+1;

this.page.current = String(Number(this.page.current) + 1);

Похожие вопросы

Карта сайта