Skip to content

refactor: enable CORS for GET /setting/application#390

Merged
hardy-dev-infinilabs merged 1 commit into
mainfrom
fix_cors
Jul 9, 2026
Merged

refactor: enable CORS for GET /setting/application#390
hardy-dev-infinilabs merged 1 commit into
mainfrom
fix_cors

Conversation

@SteveLauC

Copy link
Copy Markdown
Member

The Easysearch UI needs to call /setting/application on the Agent to discover the agent/provider configuration and to link an Easysearch node back to its managing agent. Without CORS headers, browsers block these cross-origin requests when the UI is served from a different host/port.

Add the CORS feature flag to the GET /setting/application endpoint so the agent can respond with the appropriate Access-Control-Allow-Origin and allowed headers.

Standards checklist

  • The PR title is descriptive
  • The commit messages are semantic
  • Necessary tests are added
  • Updated the release notes
  • Necessary documents have been added if this is a new feature
  • Performance tests checked, no obvious performance degradation

The Easysearch UI needs to call /setting/application on the Agent to
discover provider configuration and to link an Easysearch node back to
the Agent that launched it. When the UI is served from a different
origin, browsers block these cross-origin requests because the endpoint
did not return CORS headers.

Enable CORS for the GET /setting/application endpoint so the Agent can
respond with the correct Access-Control-Allow-Origin and allowed headers.
@SteveLauC SteveLauC changed the title fix(agent): enable CORS for GET /setting/application refactor: enable CORS for GET /setting/application Jul 9, 2026
@hardy-dev-infinilabs
hardy-dev-infinilabs merged commit c6079ab into main Jul 9, 2026
5 checks passed
@hardy-dev-infinilabs
hardy-dev-infinilabs deleted the fix_cors branch July 9, 2026 08:58
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.

3 participants