Commits

Branko Vukelic committed 9ece5ae

Fixed another bug

  • Participants
  • Parent commits 9a1084d

Comments (0)

Files changed (1)

File lib/proxy.js

     // Fix the host without causing XSS prevention to kick in. 
     // Normally, this should have been achieved by `service.changeOrigin`, but
     // that setting is slightly broken and causes XSS errors.
-    req.headers.host = service.target.host;
+    req.headers.host = target.host;
   }
 });