CORS Error when querying broker
- Dominant language
- Java
- Stars
- 6.1k
- Forks
- 1.5k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 189
Description
I'm trying to query the broker api at http://localhost:8099/query/sql but i get the following error response : No 'Access-Control-Allow-Origin' header is present on the requested resource.
Im querying from a browser, which seems to be the problem.
Need to have the response headers have the following "Access-Control-Allow-Origin: * " to allowing querying from a different origin

Contributor guide
Research direction
Start by tracing the broker API entry point for /query/sql and reproduce the request from a browser to inspect the response headers. The work is done when a cross-origin browser request receives the requested Access-Control-Allow-Origin header and can query the endpoint successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100