0.0.13 âĸ Published 4 years ago
dev-api-tunnel v0.0.13
đĨ dev-api-tunnel
Http reverse proxy with CORS, cookies, origin and refer override!.
locahost:3000 -> 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 dev-api-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
overriding refer, origin, cookies and
adding CORS headers to the response
Enjoy running your local frontend http://localhost:3000
using real backend services!
đ Contributing
If you are interested in contributing to dev-api-tunnel
, open an issue or a pr!
đ Thanks
Thank You, Open Source!
đ License
dev-api-tunnel
is 100% free and open-source, under MIT.