Access to XMLHttpRequest at ‘https://www.renewables.ninja/api/data/pv’ from origin ‘http://localhost:3000’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: It does not have HTTP ok status.
Do you know a workaround?
A stackoverflow thread suggests this:
A way to handle these to get comfortable is to ensure that for any path with
OPTIONSmethod the server sends a response with this header
Not sure whether it is an easy fix for you; here is a more detailed description: