Comments (4)
would be nice, indeed.
from gulp-webserver.
LGFM
from gulp-webserver.
You might want try out http-proxy-middleware.
The following code should do the trick; when proxy
is used as middleware.
var proxy = require('http-proxy-middleware')('/sock', {target: 'http://localhost:8000', headers: {'ABC_HEADER': 'abc'}, ws: true});
Let me know if it works.
from gulp-webserver.
Is there any news on that? I tried the @chimurai solution, but didn't worked for me.
from gulp-webserver.
Related Issues (20)
- Cache busted files not served to front-end
- GZip support
- Improve Documentation
- Livereload with HTTPS
- Error: EBUSY: resource busy or locked, stat 'C:\hiberfil.sys' at Error (native)
- Allow passing through connect-livereload rules
- Module 'proxy-middleware' is deprecated
- gulp command shows error on gitbash
- TypeError: res.send is not a function HOT 2
- Headers not added with configured middleware? HOT 1
- Is this project put in gulpjs plugins's blacklist?
- honor gulp --silent mode HOT 2
- Replace deprecated dependency gulp-util HOT 1
- How do I enable CORS?
- add request header using proxies and options
- critical vulnerability HOT 2
- Is this package still maintained? HOT 3
- Difference between gulp.src and path option? HOT 1
- Update to at least version 1.1.0 of tiny-lr to avoid Regular Expression Denial of Service
- replace isarray with Array.isArray
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-webserver.