Skip to content

About

Simple proxy for APIs without CORS

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

CORS proxy

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 😉

How to use it?

On your server/heroku/whatever

  • Set environment variable: URL_TARGET to your proxy target url. f.e.: https://example.com
  • npm ci (which is npm install but from package-lock.json)
  • npm start

Test it locally

Run it with parameter: npm start https://example.com

OR

Run it with environment variable URL_TARGET=https://example.com node server.js

Bonus: How to set env variable on Heroku

heroku env example

About

Simple proxy for APIs without CORS

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages