During surfing through internet you will find open APIs which are open ... yeah, but don't support CORS.
Grab this ready to use small node.js server which adds CORS headers. Simply use it as a proxy 😉
- Set environment variable:
URL_TARGET
to your proxy target url. f.e.:https://example.com
npm ci
(which isnpm install
but frompackage-lock.json
)npm start
Run it with parameter: npm start https://example.com
OR
Run it with environment variable URL_TARGET=https://example.com node server.js