apache / apache/pinot

CORS Error when querying broker

Open
#9,022 4 comments 0 reactions 0 assignees View on GitHub
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
![Screenshot 2022-07-05 at 19 15 23](https://user-images.githubusercontent.com/33260490/177587849-629e36d8-5811-4cab-8cd6-f6027914525d.png)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.