The CDP Fetch interceptor only paused main-frame Document requests, so a scraped page's <img>/fetch()/XHR subresources to internal targets (169.254.169.254, postgres:5432, RFC1918) reached those hosts unguarded. Drop the ResourceType::Document constraint so every request runs through is_blocked. Also make open_page fail-closed: if the guard can't install, close the blank page and return the error instead of navigating unguarded. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
864 B
864 B