Page MenuHomePhabricator

Karma qunit proxy fails setting Host: header
Closed, ResolvedPublic


On my local machine Karma proxy the requests to localhost which is not a configured virtual host, thus it fails to grab materials from /load.php.

Configuring the proxy with changeOrigin: true fix it for me. From their documentation:

The proxy can be specified directly by the target url or path, or with an object to configure more options. The available options are:
target The target url or path (mandatory)
changeOrigin Whether or not the proxy should override the Host header using the host from the target (default false)


It is not an issue on MediaWiki Vagrant or Wikimedia CI which both use 'localhost' as a virtual host.

Event Timeline

hashar created this task.Dec 20 2016, 3:46 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 20 2016, 3:46 PM

Change 328384 had a related patch set uploaded (by Hashar):
build: Karma proxy

hashar claimed this task.Dec 21 2016, 10:58 AM
hashar moved this task from Backlog to Repo setup on the Continuous-Integration-Config board.

Change 328384 merged by jenkins-bot:
build: Karma proxy should convert Host header

hashar closed this task as Resolved.Dec 23 2016, 6:48 AM

Solved, Verified by @Krinkle \O/