0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-08 17:53:55 +08:00
discourse/plugins/discourse-hcaptcha/spec
David Taylor b447f12556
DEV: Block external requests in system specs via Chrome DNS resolver (#40685)
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.
2026-06-17 12:29:57 +01:00
..
lib/discourse_h_captcha FEATURE: Add recaptcha provider to hcaptcha plugin (#39018) 2026-06-09 09:08:26 -05:00
requests/discourse_hcaptcha FEATURE: Add recaptcha provider to hcaptcha plugin (#39018) 2026-06-09 09:08:26 -05:00
services/problem_check FEATURE: Add recaptcha provider to hcaptcha plugin (#39018) 2026-06-09 09:08:26 -05:00
system DEV: Block external requests in system specs via Chrome DNS resolver (#40685) 2026-06-17 12:29:57 +01:00
.gitkeep