Skip to content

Commit

Permalink
Make routing proxy always changeOrigin
Browse files Browse the repository at this point in the history
Closes #86

[changelog]
  • Loading branch information
DavidSouther authored and vojtajina committed Oct 10, 2012
1 parent 7b8d57c commit a823239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/web-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exports.createWebServer = function (fileList, baseFolder, proxies, urlRoot) {

return http.createServer(createHandler(fileList, u.normalizeWinPath(staticFolder),
u.normalizeWinPath(adapterFolder), baseFolder,
new httpProxy.RoutingProxy(), proxies, urlRoot));
new httpProxy.RoutingProxy({changeOrigin: true}), proxies, urlRoot));
};

var createHandler = function(fileList, staticFolder, adapterFolder, baseFolder, proxyFn, proxies, urlRoot) {
Expand Down

0 comments on commit a823239

Please sign in to comment.