Skip to content

[Bug]: Docker Desktop on macOS: web UI cannot call /api/* with OD_API_TOKEN unless host networking is used #374

@vladovdey

Description

@vladovdey

Description

When running open-codesign locally with Docker Compose on macOS Docker Desktop, the web UI loads successfully, but API requests from the UI fail with:

Authorization: Bearer <OD_API_TOKEN> required

This happens when the container is running in the default Docker Compose bridge network.

Steps to reproduce

Docker Desktop: 4.75.0
Docker Compose: 5.1.3
Browser: Chrome v148.0.7778.179
MacOS: 26.5
Repository: OpenCoworkAI/open-codesign
Running with Docker Compose

Steps to reproduce

  1. Clone the repository.
  2. Create .env with OD_API_TOKEN as required by Docker Compose.
  3. Start the app:
    docker compose up -d
  4. Open the web UI:
    http://localhost:7456
  5. The UI loads, but API requests fail with:
    Authorization: Bearer <OD_API_TOKEN> required

Expected behavior

The Docker Compose setup should either work on macOS Docker Desktop with OD_API_TOKEN enabled, or the required macOS-specific configuration should be documented.

Actual behavior

The default Docker Compose bridge network causes the web UI's API calls to fail with:

Authorization: Bearer <OD_API_TOKEN> required

open-codesign version

0.8.0

Platform

macOS

OS version

macOS 26.5

Model provider (if relevant)

None

Error code

Authorization: Bearer <OD_API_TOKEN> required

Diagnostics bundle

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageAwaiting maintainer review

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions