gulp-connect-proxy-with-headers
A simple proxy middleware for gulp-connect
support post request
pass cookie and other headers
How to use
gulp;
Notes:
opt.route
is optional, if omitted requests made to http://localhost:9000/foo.com/bar.png
will be proxied.
If opt.route
is set requests made to http://localhost:9000/proxy/foo.com/bar.png
will be proxied.
This is for development purposes only. If you need a proxy in production use Nginx or Apache.
TODO:
- Write Tests