re: A realistic SSR ready web app with Svelte + Sapper + StarWars API VIEW POST


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.


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.

code of conduct - report abuse