online demo does not seem to work, sources empty and no content? idk
Uncaught (in promise) TypeError: Cannot read property 'map' of undefined at updateNewsSources (app.js:28)
GET https://newsapi.org/v2/sources?apiKey=6f4fa5447bb24a2687edecc4c1df43b4 401 (Unauthorized) updateNewsSources @ app.js:24 window.addEventListener.e @ app.js:15 marcushellberg.github.io/:1 Failed to load https://newsapi.org/v2/sources?apiKey=6f4fa5447bb24a2687edecc4c1df43b4: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://marcushellberg.github.io' is therefore not allowed access. The response had HTTP status code 401. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. marcushellberg.github.io/:1 Uncaught (in promise) TypeError: Failed to fetch Promise.then (async) window.addEventListener.e @ app.js:15
https://marcushellberg.github.io/alternative-news/
online demo does not seem to work, sources empty and no content? idk
Uncaught (in promise) TypeError: Cannot read property 'map' of undefined at updateNewsSources (app.js:28)
GET https://newsapi.org/v2/sources?apiKey=6f4fa5447bb24a2687edecc4c1df43b4 401 (Unauthorized) updateNewsSources @ app.js:24 window.addEventListener.e @ app.js:15 marcushellberg.github.io/:1 Failed to load https://newsapi.org/v2/sources?apiKey=6f4fa5447bb24a2687edecc4c1df43b4: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://marcushellberg.github.io' is therefore not allowed access. The response had HTTP status code 401. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. marcushellberg.github.io/:1 Uncaught (in promise) TypeError: Failed to fetch Promise.then (async) window.addEventListener.e @ app.js:15
thanks