How to enable CORS

Hi, I am creating a web data application using Dremio’s REST API. However, I am hitting the error “No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin is therefore not allowed access.” How can I enable cross origin requests?

Thanks!

Hi,

I am afraid we currently do not have a way to enable CORS. Users tend to call the REST API using server requests and in this case it sounds like you are directly connecting to the Dremio APIs from a browser.

I have opened an internal feature request to track this, but I am not sure if and when this will be implemented. To work around the issue you can proxy the requests through a web server.

@doron just bumping this post to see if there has been any update on if this is possible. Or is the preferred approach to still call this through a server and not directly from the browser?