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.