You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a case where I need karma to proxy requests with a specific Host header (matching the target configuration).
The http-proxy module, used by karma, has an option to do so: changeOrigin. I would like to be able to enable this option in the configuration file, per proxy.
I have a suggestion of solution ready at this branch
Example of configuration in config file:
By default the Karma proxy does requests against 'localhost', however
if the target wiki server has strict host validation (e.g. multiple
virtual hosts or otherwise strictly verified) then requests may fail
since load.php is not found. An example is with MW_SERVER=devwiki.local.
MediaWiki-Vagrant and Wikimedia CI are not affected since they use
'localhost' as the virtual host.
Set Karma proxy to change the hostname accordingly.
Reference:
karma-runner/karma#1729karma-runner/karma@ae05ea4
Bug: T153757
Change-Id: I317d5686aecd1fb6cf6921cdca77670cded85607
I have a case where I need karma to proxy requests with a specific Host header (matching the target configuration).
The http-proxy module, used by karma, has an option to do so:
changeOrigin
. I would like to be able to enable this option in the configuration file, per proxy.I have a suggestion of solution ready at this branch
Example of configuration in config file:
Thanks
The text was updated successfully, but these errors were encountered: