cors-tunnel

0.0.11 • Public • Published


CORS Tunnel - Because real-backends matters!!

cors-tunnel

Http reverse proxy with CORS and cookie tunneling - localhost:3001 -> api.prod.domain.com.

locahost:3000 -> CORS-cookie-free tunnel-server localhost:3001 <- api.production.domain.com

Usage

If you need a cookie for auth the session, copy it from the Browser and save to a file ".cookie[.env]"

npx cors-tunnel -p 3001 -t https://api.prod.domain.com -c .cookie.prod"

Now your local Api server http://localhost:3001 will forward requests to https://api.prod.domain.com adding CORS headers to the response.

Enojy dev/debug with real backend!

Enjoy running your local frontend http://localhost:3000 using real backend services!

Contributors

See Contributors.

License

MIT License.

Readme

Keywords

Package Sidebar

Install

npm i cors-tunnel

Weekly Downloads

0

Version

0.0.11

License

MIT

Unpacked Size

110 kB

Total Files

5

Last publish

Collaborators

  • salvoravida