Repository navigation
Description
Summary
When using Codex App Chrome Use to open a locally hosted SPA page through a custom hostname mapped to 127.0.0.1, the page can be blocked with:
ERR_BLOCKED_BY_CLIENT
The same URL loads normally in regular Chrome and through Chrome DevTools/CDP-style control. The issue disappears after the local dev server adds this header to the SPA HTML fallback response:
Content-Type: text/html; charset=utf-8This looks like Chrome Use or Codex App is applying a client-side protection/classification rule that treats an extensionless HTML fallback response without Content-Type as a blocked client resource or download.
Environment
- Codex App with Chrome Use
- macOS
- Chrome
- Local development server on
127.0.0.1 - Custom hosts entry, for example:
127.0.0.1 dev.example.testReproduction
- Add a custom local hostname:
127.0.0.1 dev.example.test-
Start a local HTTP server on port
8000. -
Serve a SPA fallback route such as:
http://dev.example.test:8000/app/home
- Return HTML with
200 OK, but without aContent-Typeheader:
HTTP/1.1 200 OK
Transfer-Encoding: chunked
<!DOCTYPE html>
<html>
...
</html>- Open the URL through Codex App Chrome Use:
http://dev.example.test:8000/app/home
Actual result
Chrome Use shows a browser-level failure:
ERR_BLOCKED_BY_CLIENT
The page does not render.
Expected result
Chrome Use should load the page the same way normal Chrome does, or report a more specific diagnostic explaining why the response was blocked.
Important observation
If the exact same HTML fallback response is changed to include:
Content-Type: text/html; charset=utf-8then Chrome Use loads the page successfully.
So the minimal difference appears to be:
HTTP/1.1 200 OK
+Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
<!DOCTYPE html>Why this matters
Many local SPA dev servers serve extensionless fallback routes such as /app/home, /dashboard, or /product/foo. If the dev server forgets or fails to set Content-Type on fallback HTML, normal Chrome may still render the page, but Codex Chrome Use blocks it as ERR_BLOCKED_BY_CLIENT.
This creates a confusing debugging path because the error looks like an enterprise policy block, extension/DNR rule, ad-blocker-style client block, or domain restriction, while the root cause appears to be response classification caused by the missing Content-Type.
Suggested improvement
Codex App / Chrome Use could improve this in one or more ways:
- Avoid blocking top-level navigations that return
200 OKand start with<!DOCTYPE html>or<html>, even whenContent-Typeis missing. - Surface a clearer diagnostic, for example: Navigation blocked because the response has no Content-Type and was classified as unsafe or unsupported.
- Align behavior with normal Chrome top-level navigation behavior for local development URLs.
- Document this requirement for local dev servers using Chrome Use.
Workaround
Ensure the local dev server sets this header for SPA HTML fallback routes:
Content-Type: text/html; charset=utf-8
Activity
likeyiyy commentedon Jul 16, 2026
same issue
mrtomatwo commentedon Oct 7, 2026
I encountered matching missing-
Content-Typebehavior in the Codex built-in browser on macOS on October 7, 2026. This example returns HTTP 503 rather than the original report's HTTP 200.Environment: desktop app version 26.1002.52244, build 13536; bundled browser runtime 26.1002.52244.
Public example URL:
https://karriere.ooeg.at/engage/jobexchange
Ordinary Browser Use navigation returned
net::ERR_BLOCKED_BY_CLIENT. Passive Network diagnostics captured the following sequence in two attempts:Documentrequest reached the endpoint.Network.responseReceivedExtraInforeported HTTP 503 Service Unavailable,Content-Length: 62, and noContent-Typeheader.Network.loadingFailedreportednet::ERR_BLOCKED_BY_CLIENTwithblockedReason: "inspector".The same URL also showed “Service Unavailable” in my regular browser outside Codex. The upstream 503 is therefore a separate problem; the Codex issue is that its response handling masks that status as a client block.
Read-only inspection of the shipped browser service found the Document/download-classification path described in this issue. An offline check using the extracted shipped MIME predicates classified the captured headerless 503 metadata as a download; adding
Content-Type: text/htmlto the synthetic metadata only changed that classification. We did not instrument the live cancellation branch, modify the installed runtime, rewrite live headers, disable browser protections, or retrieve the blocked response body.For comparison, the complete job-listing URL linked from https://www.ooeg.at/karriere loaded successfully in the same built-in browser without further permission changes:
https://karriere.ooeg.at/engage/jobexchange/showJobOfferList.do?init=true&j=jobexchange
Could the browser runtime report the original HTTP error, or an actionable response-classification diagnostic, while preserving site-access and download approvals?