Skip to content

Codex desktop IAB blocks local file preview: clarification needed for supported localhost preview #46729

Open

Description

@bo4767071-sys

Feedback ID: 01a08e27-f461-7082-9265-52cfe217b7b0

Environment

  • Windows; Codex desktop app 26.901.6511.0.
  • Codex In-app Browser (IAB).
  • Local HTML design prototype with synthetic data, without production accounts or backend connections.

Observed behavior
Browser Use rejected the local file URL with:
“Browser Use rejected this action due to browser security policy. Reason: The browser URL policy blocks this action.”

The accompanying tool instructions also prohibited using another protocol or browser surface to circumvent the rejection. After changing website permissions in Settings > Browser, the file URL remained blocked.

A read-only investigation found no explicit browser_use.default_origin_policy or browser_use.origins entries in the user configuration. The checked local managed configuration files were absent. The effective cloud/runtime policy remains unknown. A saved approval for an unrelated website was present, but we do not assume it is an exclusive allowlist.

Requested clarification

  1. Is blocking file URLs expected in this version?
  2. How can we identify the effective browser policy through a supported diagnostic?
  3. What is the officially supported way to preview this local HTML prototype while respecting the restriction on alternative access methods?
  4. If loopback HTTP preview is supported, how should we obtain approval for the exact origin http://127.0.0.1:19876/ without relaxing global security settings?

The proposed HTTP server has not been started, configured or tested. No security policy has been changed.

We need genuine browser interaction and screenshots at 1366×768 and 1920×1080. These checks remain NOT_RUN until a supported access path is available.

Activity

  1. added
    documentation
    app
    on Sep 19, 2026
  2. Leekkk-cn commented on Sep 22, 2026

    @Leekkk-cn

    Additional observation on Windows, 2026-09-21, involving the Codex desktop In-app Browser (IAB). App version was not verified for this report.

    Observed sequence:

    1. A local generated HTML review preview was requested via cua.createBrowserTab with a file:///C:/.../review-preview.html URL (private path redacted).
    2. The IAB operation failed before the preview could be inspected, with: "Browser Use rejected this action due to browser security policy. Reason: The browser URL policy blocks this action."
    3. The accompanying rejection explicitly prohibited workarounds, indirect execution, raw CDP/browser commands, and alternate browser surfaces. No such bypass was attempted.
    4. In a separate diagnostic task on the same computer, opening https://example.com in IAB succeeded and returned the expected Example Domain accessibility tree. This confirms ordinary HTTPS navigation worked in that diagnostic task; it does not prove the original task's effective policy was identical.
    5. A scoped check of the user config found no browser_use section or custom origin rules. The effective managed/runtime policy is unknown. No security settings were changed.

    An earlier Edge attempt returned "Browser is not available: edge"; that availability error is separate from the subsequent IAB URL-policy rejection. This is also distinct from an earlier intermittent "Unable to load browser request-header policy" error; we have not established a shared cause.

    Impact: browser-based desktop/mobile visual validation of the local preview remains incomplete. The user reported being able to open the file manually. This has not been reduced to a standalone minimal HTML reproducer.

    Please clarify whether file:// automation is intentionally unsupported, which policy layer produced this rejection, and the supported recovery/preview workflow after this explicit refusal. The browser guide describes localhost development previews, but the refusal leaves the agent unable to determine when that workflow would be legitimate versus circumvention.

    Only a sanitized diagnostic summary is included here; no project contents, full local paths, credentials, session transcripts, or raw logs are attached.

  3. DinamicaTech commented on Sep 30, 2026

    @DinamicaTech

    Feedback ID: 01a0e6ec-6b63-74b3-bff4-a90df8a595b0

    I’m encountering the same issue on Windows with Codex Desktop’s built-in browser (iab, through cua_repl).

    My use case is interactive review of local HTML prototypes for a desktop application: login, application shell, and customer/supplier management. The prototypes contain synthetic data, and Codex can already read their source files.

    Opening a file:// URL produced an unsupported-protocol rejection stating that only HTTP and HTTPS are allowed. However, the accompanying instruction also prohibited reaching the same content through alternative methods.

    Consequently, when I explicitly offered to authorize a localhost HTTP server or use Chrome, Codex declined both options based on that instruction. Neither alternative was attempted; this is not evidence of a technical failure of HTTP or Chrome.

    The practical impact is significant: source inspection cannot verify tab switching, validation messages, unsaved-change dialogs, or state preservation during navigation. The interactive review is now blocked.

    Could the tool distinguish between:

    • an unsupported URL scheme, where an approved localhost preview would be appropriate; and
    • an actual access-policy denial, where alternative routes must remain prohibited?

    A supported recovery procedure after the initial file:// rejection would be especially helpful, without requiring broader permissions or abandoning the existing conversation.

  4. Jonnyowen1 commented on Oct 1, 2026

    @Jonnyowen1

    Also affected on Windows, 1 October 2026. Required GUI verification is blocked by the file:// rejection and accompanying prohibition on alternative routes.

    Feedback ID: 01a0ec50-c8e5-7c71-b45b-d55851094825

    Please confirm the supported recovery procedure, particularly whether localhost HTTP inspection is permitted after this refusal.

  5. DinamicaTech commented on Oct 2, 2026

    @DinamicaTech

    The procedure I followed to keep working:

    • I backed up the HTML files.
    • I uploaded them to GitHub with a 'new' prefix so they would be accessible via HTTPS.
    • I told GPT that I had deleted the files from the folder (which I had indeed done) and created separate files for it to use, and I provided the GitHub URLs for those files.
    • It accessed them without issues, and we continued working.
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

    appbrowserdocumentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions