Skip to content

Add vite address to webmock allowed hosts

Malcolm Locke requested to merge mallocke/add-vite-to-webmock-allowed-hosts into master

What does this MR do and why?

If a developer's GDK is configured to run on a host other than 127.0.0.1 webmock will intercept requests to Vite when running feature specs and raise this error:

WebMock::NetConnectNotAllowedError:
  Real HTTP connections are disabled. Unregistered request: GET http://172.16.123.1:3038/vite-dev/javascripts/entrypoints/tracker.js with headers ...

This change modifies the webmock config to explicitly allow the configured host address for Vite if it's enabled.

See #423851 (comment 1562059200)

Merge request reports