Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dev-api-tunnel

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dev-api-tunnel

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

  • 0.0.13
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source


Dev Api Tunnel - Because real-backends matters!!

💥 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.

Keywords

FAQs

Package last updated on 09 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc