Witam chciałem odpalic fetch i zwrocic promise w konsoli
fetch("https://api.....")
.then(response => {
console.log(response);
})
Ale wywala mi taki bład.. czy to wina serwera?
Access to fetch at 'https://api.....' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
GET https://api.... net::ERR_FAILED
Uncaught (in promise) TypeError: Failed to fetch