Merge "build: Karma proxy should convert Host header"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 23 Dec 2016 02:06:16 +0000 (02:06 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 23 Dec 2016 02:06:16 +0000 (02:06 +0000)
Gruntfile.js

index 55b7932..7b3af54 100644 (file)
@@ -14,7 +14,10 @@ module.exports = function ( grunt ) {
        grunt.loadNpmTasks( 'grunt-karma' );
        grunt.loadNpmTasks( 'grunt-stylelint' );
 
-       karmaProxy[ wgScriptPath ] = wgServer + wgScriptPath;
+       karmaProxy[ wgScriptPath ] = {
+               target: wgServer + wgScriptPath,
+               changeOrigin: true
+       };
 
        grunt.initConfig( {
                eslint: {