mirror of
https://github.com/discourse/discourse.git
synced 2026-08-08 17:53:55 +08:00
Add a catch-all `MAP * ~NOTFOUND` to Chrome's --host-resolver-rules so any non-excluded host fails to resolve, instead of system specs reaching the real internet. Local/test hosts (the Capybara server, *.localhost, MinIO) are excluded. Unlike Playwright request interception this leaves the browser HTTP cache enabled. Specs that need an external host opt in with `allow_network: ["example.com"]`, which runs them in a dedicated browser with those hosts excluded from the block. |
||
|---|---|---|
| .. | ||
| lib/discourse_h_captcha | ||
| requests/discourse_hcaptcha | ||
| services/problem_check | ||
| system | ||
| .gitkeep | ||