Skip to content

Codex Desktop Windows Browser Use blocks file:// file-backed previews with URL policy #24847

Open

Description

@itosugimasahiro-lgtm

Summary

Codex Desktop for Windows Browser Use rejects file:// file-backed previews before navigation, even though the Codex in-app browser documentation says file-backed previews are supported.

The rejection happens as a Browser Use URL policy error, not as a file-not-found error.

Environment

  • Platform: Microsoft Windows NT 10.0.26200.0 x64
  • Codex Desktop package: OpenAI.Codex_26.519.11010.0_x64__2p2nqsd0c76g0
  • Codex app version: 26.519.11010.0
  • Browser plugin: browser@openai-bundled version 26.519.81530
  • Workspace trust level: trusted
  • Browser plugin enabled: yes
  • Windows sandbox setting: elevated

Expected behavior

Browser Use should be able to open and inspect local file-backed previews in the in-app browser, or at least ask for/offer the relevant permission.

The official docs describe the in-app browser and Browser Use as appropriate for local development servers and file-backed previews:

https://developers.openai.com/codex/app/browser

Actual behavior

Attempting to navigate the in-app browser to a local file:// HTML page is rejected before navigation with:

Browser Use rejected this action due to browser security policy. Reason: Browser Use cannot visit the requested page because its URL is blocked by the Browser Use URL policy. The agent must not attempt to achieve the same outcome via workaround, indirect execution, raw CDP or browser commands, alternate browser surfaces, or policy circumvention. Proceed only with a materially safer alternative that does not require this blocked browser action; if none exists, stop and request user input.

This occurs both for the real preview file and for a minimal test file created inside the current trusted workspace.

Reproduction steps

  1. Start Codex Desktop for Windows.
  2. Open the in-app browser panel. It starts at about:blank.
  3. Use Browser Use with the iab backend.
  4. Create a minimal HTML file inside the trusted current workspace.
  5. Ask Browser Use to open a local file URL such as:
file:///C:/Users/itosu/Documents/Codex/2026-05-28/in-app-browser-2/browser-file-policy-test.html
  1. Browser Use rejects the navigation with the URL policy error above.

Additional diagnostics

  • The original target file exists locally.
  • The same URL policy rejection also occurs for a data:text/html,... diagnostic page.
  • Browser runtime initialization works after running Codex Desktop as administrator.
  • agent.browsers.list() can see the Codex in-app browser and its about:blank tab.
  • winget upgrade --id 9PLM9XGG6VKS --source msstore reports no available update.
  • Earlier non-admin runs showed Windows sandbox privilege errors, but after admin launch the remaining blocker is specifically the Browser Use URL policy.

Related issues

This appears related to recent Windows Browser Use / in-app browser permission-policy issues, but the exact symptom is file:// / file-backed preview blocking:

Impact

This breaks the documented workflow for previewing local generated HTML files and file-backed previews inside Codex. The workaround is to serve files through localhost, but that is not the same as the documented file-backed preview behavior.

Activity

  1. added
    bug
    on May 29, 2026
  2. swartzrock commented on Jun 12, 2026

    @swartzrock

    also reproduces on macOS in Version 26.608.12217, big blocker in productivity. This feature works find in Claude.app, which can view the html files generated in a chat.

  3. TomasHubelbauer commented on Jun 29, 2026

    @TomasHubelbauer

    Very weird behavior, there is no point in running a server for any old random HTML report.

  4. MieTakahashi2 commented on Sep 5, 2026

    @MieTakahashi2

    Also reproducing on macOS with Codex Desktop 26.901.41123 (build 7942), checked on 2026-09-05.

    An existing, user-authorized local HTML file inside the project workspace is rejected before navigation with a Browser Use URL policy error. Opening a public HTTPS documentation page and capturing its screenshot succeeds through the official in-app browser tools.

    Browser is enabled and website approval is set to Always allow. Restarting the app and retrying with Full Access enabled did not resolve the rejection.

    This blocks visual verification of generated HTML. The rejection also explicitly instructs the agent not to use workarounds or alternate browser surfaces, so the agent stops rather than trying the localhost approach mentioned in the issue.

    Could maintainers clarify the supported remediation for file-backed previews, and whether serving the same workspace preview over localhost is an intended, permitted alternative despite that rejection message?

  5. 7ammad commented on Sep 8, 2026

    @7ammad

    Confirmed on Windows with browser plugin 26.901.51231. The plugin description explicitly includes file:// targets, while browser-service.mjs accepts only about:blank, http:, and https:. Navigating to a local workspace HTML report produces navigation_url_policy_blocked. Please provide supported access to authorized workspace HTML previews and align the documented capabilities with runtime behavior.

  6. 1wgrumph commented on Sep 8, 2026

    @1wgrumph

    Origin

    OpenAI bundled browser integration; not project-defined policy.

    Harness / version

    Codex CLI 0.153.2; browser plugin 26.831.20005; Linux.

    What

    Opening a local HTML file through the browser tool produces navigation_url_policy_blocked, although the plugin manifest explicitly advertises file:// support.

    Current evidence

    The failure occurred during an explicit user request. Installed runtime inspection found that nv() permits only HTTP, HTTPS and about:blank; G5() enforces that check. The rejection also prohibits alternate execution paths. No workaround was attempted.

    This confirms an advertised-capability/runtime mismatch, without establishing whether local-file support or the documentation should change.

    Expected

    Advertised capabilities and enforced URL policy agree. Errors distinguish unsupported functionality from user-configured restrictions.

    Acceptance

    Add regression coverage for local-file navigation and align the manifest, implementation and error guidance with the intended behavior.

  7. thapro73-cpu commented on Sep 9, 2026

    @thapro73-cpu

    Also reproduced on Windows on 2026-09-10 with Codex Desktop package OpenAI.Codex_26.901.6511.0_x64__2p2nqsd0c76g0.

    An existing, user-authorized HTML file in the project workspace displays normally when opened directly by the user in the in-app browser. However, cua.createBrowserTab("iab", "file:///.../leaderboard.html", {visible:true}) is rejected before navigation with navigation_url_policy_blocked. The path above is a redacted placeholder, not a real user path.

    Read-only inspection of the installed URL validator found that it accepts only about:blank, http: and https:, separately from site-approval settings. This is a URL-scheme rejection, not a missing or broken HTML file. No policy bypass or security changes were attempted during this diagnosis.

    Could maintainers clarify the officially supported way to automatically display user-authorized workspace HTML, and whether a fix or supported permission mechanism is planned? If this restriction is intentional, please align the documented capabilities and error guidance so users are not directed to unrelated Windows security or broader access settings.

    No project data, screenshots, credentials, full local paths, or session logs are attached.

  8. NovaSabre commented on Sep 10, 2026

    @NovaSabre

    Still reproducible on Windows on September 10, 2026, with Codex Desktop package version 26.903.9818.0 (verified using Get-AppxPackage).

    In an active local project, Codex can read and edit workspace files, but the bundled Browser Use tool rejects opening an existing, user-authorized SVG reference sheet via file:// before navigation. The selected backend was the Codex in-app browser. The task had unrestricted filesystem access and network access enabled.

    Redacted reproduction:

    1. Keep an existing SVG reference sheet inside the active project workspace.
    2. Ask Codex to open it using the in-app browser, for example file:///C:/example-project/docs/reference-sheet.svg (placeholder path only).
    3. Browser Use rejects the navigation with: "The browser URL policy blocks this action."

    The rejection also explicitly instructs the agent not to achieve the same outcome through workarounds or alternate browser surfaces. This leaves the agent unable to perform the visual verification required before implementing the planned icon change. No bypass or security-setting changes were attempted.

    Could maintainers confirm whether this is a known unresolved bug or an intentional restriction? What is the officially supported way to inspect user-authorized local SVG/HTML previews, and is a fix planned? In particular, is serving a preview through localhost a supported alternative despite the rejection message's prohibition on workarounds?

    No project names, real local paths, credentials, account identifiers, screenshots, or session logs are included. This comment was prepared and posted by Codex with the account owner's explicit authorization.

  9. Bagh13nrv commented on Sep 21, 2026

    @Bagh13nrv

    Additional reproduction on Windows, observed on September 21, 2026.

    Verified behavior

    • Two existing HTML previews in the active local workspace are visible to the user in the Codex in-app browser.
    • The agent can list browser tabs, but selecting the existing file-backed tab with getTab, or opening its URL with createBrowserTab, is rejected before inspection with: The browser URL policy blocks this action.
    • The same tool can open and inspect the public HTTPS OpenAI Help Center and interact with its support chat. Browser connectivity is therefore not completely unavailable.
    • The navigation permission displayed in settings is "Always allow". An app update followed by another attempt did not resolve the local-file refusal.
    • The site-permission form rejects a complete file:/// URL as an invalid origin. We understand that the documented origin rules cover HTTP/HTTPS; this does not provide an authorization path for the existing local preview.

    Environment and scope

    • Windows desktop; Codex in-app browser.
    • Application package version identified in the error stack before the update: 26.915.3509.0.
    • Browser/computer-use plugin version observed after the update: 26.915.31945. This is a plugin version, not a claim about the current app version.
    • Impact: visual verification of local HTML learning materials is blocked. No production outage or data loss is claimed.

    Recovery guidance needing clarification

    The tool's rejection explicitly prohibits achieving the same outcome through workarounds, indirect execution, raw CDP, or alternate browser surfaces. The Help Center AI suggested serving the files on localhost, but could not reconcile that suggestion with the prohibition or confirm a tracked support case. We have not applied that workaround after the denial, and the chatbot's suggestion is not treated as permission to bypass policy.

    Could maintainers clarify whether agent inspection of authorized local file-backed previews is supported, and provide the intended recovery/approval path or corrective release? In particular, please align the refusal guidance with any officially supported alternative. Related recovery concern: #44881; related visible-preview/blocked-inspection report: #36552.

    This report was posted by Codex with the account owner's explicit authorization. No course contents, student data, personal filesystem paths, account/session identifiers, screenshots, credentials, or full logs are included. We have not established whether the underlying cause is an intentional scheme restriction or a regression.

  10. diegoscl commented on Sep 27, 2026

    @diegoscl

    Additional reproduction on macOS, observed September 27, 2026.

    Verified behavior

    • A local HTML slide deck was already visible in the Codex in-app browser at a file:// URL.
    • Browser Use could list the iab browser and the existing tab.
    • The agent then attempted to select/reload that tab and read a DOM snapshot. The call was rejected before any page content or screenshot was available:

    Browser Use rejected this action due to browser security policy. Reason: The browser URL policy blocks this action. The requested URL protocol is not allowed. Allowed protocols: "http:", "https:".

    The refusal also prohibited workarounds, indirect execution, raw CDP, and alternate browser surfaces. We did not attempt another route after that refusal.

    Environment and impact

    • macOS 27.0 (build 26A428).
    • Codex in-app browser with the browser@openai-bundled client bundle 26.924.22138.
    • The affected task was visual verification of a locally generated 22-slide HTML deck. The agent could edit the deck and check its structure, but could not confirm the final layout visually.

    Could maintainers clarify whether Browser Use is intended to inspect an existing, visible file:// tab on macOS? If file-backed previews are unsupported, what is the approved path for agent-assisted visual verification when the refusal explicitly forbids alternate routes?

  11. speedraj108 commented on Oct 9, 2026

    @speedraj108

    Additional Windows observation, verified on 2026-10-09, posted with the account owner's explicit authorization.

    Confirmed behavior

    An existing, user-authorized local HTML design preview opens visibly for the user. The original recorded Browser Use result for cua.createBrowserTab("iab", "file:///…/preview.html", {visible:true}) rejects the request before inspection:

    Browser Use rejected this action due to browser security policy. Reason: The browser URL policy blocks this action. Browser use cannot visit the requested page. The requested URL protocol is not allowed. Allowed protocols: "http:", "https:".

    The same tool result explicitly prohibits workarounds, indirect execution, raw CDP/browser commands, and alternate browser surfaces. This was verified from the original tool return, not merely an assistant's later explanation. The placeholder URL above is redacted.

    Version evidence

    • Windows installed Appx package: OpenAI.Codex, version 26.1002.7124.0.
    • The app's information-only update tool reports installedVersion: 26.1002.52244, build 13536, release channel prod.
    • These are distinct reported version fields; we are not assuming they must match.
    • Update eligibility remains unknown: the information-only checker deferred to Microsoft Store. No update was installed and no security settings were changed.

    Requested actionable recovery

    The official Browser guide describes local development-server previews and browser-assisted visual review. The current refusal leaves no clear supported recovery for this authorized preview.

    Could maintainers provide:

    1. The intended distinction between unsupported file: navigation and a denied origin/resource.
    2. A supported permission or migration path to ordinary local-development visual review after this refusal, including whether a narrowly scoped loopback preview is allowed.
    3. A fixed version or concrete remediation, if this is a defect.

    The practical impact is interrupted visual iteration and repeated manual screenshot work. We are not requesting removal of security checks or claiming that all Chromium/HTTP workflows are prohibited. No private HTML, images, screenshots, filesystem paths, credentials, conversation history, or full logs are included.

  12. Bigboz74 commented on Oct 22, 2026

    @Bigboz74

    Additional Windows reproduction — local offline test blocked

    Observed on 23 October 2026 in the ChatGPT desktop application on Windows, using the integrated browser through the iab binding. The exact application version has not been collected.

    Reproduction

    1. Create a minimal, inert HTML fixture inside the current workspace, with no scripts, forms or external resources.
    2. Create a temporary integrated-browser tab at about:blank.
    3. Request navigation to the fixture using its file:/// URL.
    4. Navigation is rejected before the fixture loads.

    Relevant error excerpt:

    The requested URL protocol is not allowed. Allowed protocols: "http:", "https:".

    The rejection also explicitly prohibits workarounds, indirect execution, alternate browser surfaces and policy circumvention.

    Observed result and impact

    We stopped after this single rejected navigation and explicitly closed the temporary tab.

    No alternative route, local HTTP server, browser-policy modification or workaround was attempted. No external account was accessed.

    This prevents a prerequisite local test of the existing browser binding’s asynchronous evaluate behavior: Promise completion, timeout handling and observable termination. No evaluation ran, so this report does not claim that the binding itself fails those tests.

    Requested clarification

    What officially supported method allows an agent to load an offline HTML fixture and test the existing integrated-browser binding without bypassing this refusal or weakening security?

    The browser documentation mentions file-backed previews. Please clarify the supported interface or release for this workflow, or explicitly document that it is unavailable in this binding.

    Submitted feedback

    Feedback ID: 01a14a97-edd3-78e2-ba72-50d9d755a27e

    The application confirmed that the feedback was submitted. Private paths, project documents, account details and authentication data are intentionally omitted from this public comment.

  13. Bigboz74 commented on Oct 24, 2026

    @Bigboz74

    Complément — procédure officiellement autorisée après refus file:

    Contexte : Windows, outil mcp__cua_repl.js, navigateur intégré IAB. Le 23 octobre 2026, une unique navigation vers une fixture HTML locale inerte a été refusée avant chargement par « Browser Use rejected this action due to browser security policy », avec la raison « The requested URL protocol is not allowed. Allowed protocols: http:, https: » et une interdiction explicite de contournement, d’exécution indirecte, de CDP brut ou d’autres surfaces de navigateur. L’onglet temporaire a été fermé. Aucun evaluate n’a été exécuté et aucune autre voie n’a été tentée.

    La documentation Browser décrit des aperçus locaux et des pages reposant sur des fichiers ; Work with files décrit également un aperçu HTML interactif lorsqu’il est disponible. Ces possibilités générales n’expliquent pas la procédure applicable après ce refus précis. La version exacte du client et l’horodatage détaillé n’ont pas été collectés dans ce relevé.

    Question : quelle procédure officiellement prise en charge permet de qualifier une fixture DOM locale dans IAB après ce refus, comment distinguer une interface ou migration officiellement admise d’un détour interdit, et quelles garanties evaluate fournit-il pour les Promise, les délais et la fin ou l’annulation observable ?

    Nous ne demandons aucune désactivation de sécurité. Si une prévisualisation HTTP ou une autre interface ou migration est officiellement admise, merci de préciser son périmètre et les contrôles applicables. Aucun essai n’en sera déduit sans validation par les contrôles courants et autorisation distincte. Aucun essai de substitution ni droit Google n’est demandé aujourd’hui.

    Aucun journal brut, source applicative, configuration privée, capture de compte, secret ou conversation n’est joint. Aucun essai supplémentaire n’a été effectué en attendant une réponse applicable. Ce complément est publié avec l’autorisation explicite du titulaire du compte.

  14. stereosurfer commented on Nov 1, 2026

    @stereosurfer

    Additional macOS evidence, observed 2026-10-31–2026-11-01 and posted with the account owner's explicit authorization.

    Environment: macOS 27.2; Codex desktop Browser Use through cua_repl, iab backend. Exact desktop build was not collected.

    Recorded failure: opening an existing, user-authorized workspace HTML maintenance diagram via cua.createBrowserTab('iab', 'file:///…/maintenance.html', {visible:false}) was rejected before visual inspection. The URL above is a redacted placeholder. The original tool response was rechecked, rather than relying on the assistant's later explanation:

    Browser Use rejected this action due to browser security policy. Reason: The browser URL policy blocks this action. Browser use could not acquire authority to trigger network egress. The URL policy gate did not grant access. The requested URL protocol is not allowed. Allowed protocols: "http:", "https:". The agent must not attempt to achieve the same outcome via workaround, indirect execution, raw CDP or browser commands, alternate browser surfaces, or policy circumvention. Proceed only with a materially safer alternative that does not require this blocked browser action; if none exists, stop and request user input.

    Additional impact: restriction attribution and delegated review. The refusal leaves no clear supported path to visually verify the generated local document. The assistant also initially conflated its own restricted task/tool surface with another agent's browser capabilities. That attribution was incorrect and has been corrected.

    A separate, user-authorized Antigravity (AGY) /browser test with Gemini 3.8 Flash Low successfully navigated a public example page, clicked through to IANA, and captured a real screenshot. The screenshot and destination were independently checked. Chrome remote debugging was enabled only for that test and restored to off afterward. This confirms that AGY browser operation works; it does not establish that AGY permits this local file. The rejected maintenance document was not transferred to AGY or rendered through another route.

    Please clarify or fix:

    1. Whether explicitly authorized workspace HTML has a supported visual-review/approval path, and how to use it without broad security changes.
    2. Whether this is an intentional unsupported URL scheme, a policy/configuration defect, or a product regression.
    3. The scope of the no-alternate-route instruction: distinguish Codex's own execution constraints from independent tools' capabilities and policies.
    4. Any officially permitted recovery/migration path after this exact refusal; general localhost support alone does not resolve the contradictory recovery guidance.

    No fresh denied-file attempt was made for this report. No private HTML, screenshots, personal paths, account/session identifiers, credentials, or full logs are attached.

  15. piipo1990 commented on Nov 11, 2026

    @piipo1990

    Additional macOS report, observed on 2026-11-11 and posted with the user's explicit approval.

    • Codex version: 26.1103.60933, build 25894.
    • After the user reported reinstalling, a retry through the native Browser Use tool still rejected the local file:// HTML page.
    • The error states that the requested URL protocol is not allowed and that the allowed protocols are http: and https:.
    • Browser browsing permissions are set to allow.
    • The same local HTML file opens and displays when the user opens it manually in Google Chrome.

    Please confirm whether this is an expected restriction or a known defect, and provide a supported recovery procedure or a version containing a fix.

    No project files, screenshots, full chat transcripts, or local filesystem paths are included in this report.

  16. PauloMartins968 commented on Nov 11, 2026

    @PauloMartins968

    I'm experiencing a similar issue on Windows. The browser tool blocked access to a local HTML preview using a file:// URL, so I can't visually validate the interface.

    What is the supported way to review and test a local preview in this situation?

    Feedback ID: 01a19d40-9b47-75f5-9adb-ac19585f701d

  17. krylov-s commented on Nov 15, 2026

    @krylov-s

    On macOS Codex Desktop, the built-in browser manually displays a local file:///Users/<user>/.../prototype.html page. cua.getState() can see the tab (ID 2 and its title), but cua.getTab('2', {browser: 'iab'}) fails with Blocked browser navigation by Browser Use URL policy: file:///.... cua.createBrowserTab('iab', 'file:///...') is blocked as well. In contrast, an HTTPS page such as https://example.com can be opened and controlled successfully.

    What is the officially supported way to grant Browser Use access to local files, or is file:// support planned? A scoped permission or documented supported workflow would clarify how to inspect local previews safely.

  18. added
    app
    windows-os
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbrowserbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions