Return req.originalUrl from gulpfile proxy
This commit is contained in:
parent
2525b06c28
commit
dce68ce813
@ -107,7 +107,7 @@ gulp.task('dev', ['css', 'fonts', 'fonts:woff', 'config', 'compress:dev', 'binda
|
|||||||
|
|
||||||
app.use('*', proxy('localhost:1337', {
|
app.use('*', proxy('localhost:1337', {
|
||||||
forwardPath: function(req, res) {
|
forwardPath: function(req, res) {
|
||||||
return url.parse(req.url).path;
|
return req.originalUrl;
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user