Skip to content

fix(proxy): allow X-* headers in CORS preflight and report real version - #190

Open
BlessedWithLuck1105 wants to merge 2 commits into
xiaoY233:mainfrom
BlessedWithLuck1105:fix/cors-allow-headers
Open

fix(proxy): allow X-* headers in CORS preflight and report real version#190
BlessedWithLuck1105 wants to merge 2 commits into
xiaoY233:mainfrom
BlessedWithLuck1105:fix/cors-allow-headers

Conversation

@BlessedWithLuck1105

@BlessedWithLuck1105 BlessedWithLuck1105 commented Aug 16, 2026

Copy link
Copy Markdown

What does this PR do?

managementApiPort was defined in the shared config types, preload bridge, and renderer settings, but the code that builds the local management API URL always used proxyPort. This made the field a dead config value.

This PR makes the local management API URL resolve managementApiPort first and fall back to proxyPort when it is unset. The settings page now shows the same effective endpoint, so the UI and preload bridge stay in sync.

How did you verify your code works?

  • node --test tests/renderer/header-proxy-address.test.mjs
  • npm run check:source-artifacts
  • bun --cwd packages/opencode typecheck

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant