Skip to content

Proxy CKAN through the container nginx (only if T3 says CORS is broken) #74

Closed

Description

@mosoriob

Question

Close this unopened if T3 finds CORS is fine.

If CKAN rejects cross-origin browser calls, route them same-origin through the container's own nginx rather than asking TACC to add CORS headers. The decision to proxy rather than ask is already made — it keeps someone else's config change off the critical path, and it works on every origin including Vercel previews.

Add a location block to ui-react/docker/nginx.conf proxying the CKAN Action API, and point DATA_CATALOG_API at that path via window.__MINT_CONFIG__.

Keep DATA_CATALOG_BROWSE_URL pointed at the real host — it is the human-browsable iframe URL, a different thing from the Action API base, and conflating them is exactly the bug PR #63 fixed. See issue #59.

Note the proxy only helps the deployed container. Vercel previews and npm run dev do not go through that nginx, so say plainly in the resolution which environments are covered.

Activity

  1. added
    wayfinder:taskWayfinder ticket: manual work that unblocks a decision
    on Aug 8, 2026
  2. mosoriob commented on Aug 8, 2026

    @mosoriob
    ContributorAuthor

    Closed unopened, per the verdict on #71.

    ckan.tacc.utexas.edu allowlists *.tacc.utexas.edu, localhost and 127.0.0.1 for
    Access-Control-Allow-Origin. The deployed container serves https://mint.tacc.utexas.edu,
    which is on that list — so this proxy would fix a problem that does not exist in the one
    environment it can reach. The environment that is blocked (Vercel previews) does not pass
    through the container nginx at all, so this ticket could never have helped there.

    No change to ui-react/docker/nginx.conf. DATA_CATALOG_API stays pointed at the real host
    in #75.

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

    wayfinder:taskWayfinder ticket: manual work that unblocks a decision

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions