DEV Community

Discussion on: A realistic SSR ready web app with Svelte + Sapper + StarWars API

Collapse
 
lgs profile image
Luca G. Soave

It looks currently broken. The FetchEvent for "swapi.co/api/people" resulted in a network error response: the promise was rejected because it has been blocked by CORS policy.

Access to fetch at 'swapi.co/api/people' from origin 'keen-clarke-08ba4f.netlify.com' 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.

Collapse
 
rajenderjoshi profile image
Rajender Joshi

Hi, thanks for reporting the issue. Apparently, it looks like swapi.co is out of service and there's a mirror on swapi.dev. I've made the required changes and it should be working now.