OpenML icon indicating copy to clipboard operation
OpenML copied to clipboard

CORS policy

Open saehm opened this issue 4 years ago • 0 comments

Hello,

I would like to use OpenML in a JavaScript library, which should work in the browser and in nodejs. So, far i have no problems in fetching data using the REST API in node.js. When i want to fetch data in the browser, the browser blocks the request, because the response header does not contain a "Access-Control-Allow-Origin" header.

Is there a problem on my side, do i have to add something to the request header? Is it on purpose to permit fetching data from a script running in a browser from your side?

I am using node-fetch in the node environment, and the default javascript fetch in the browser environment.

saehm avatar Jan 25 '22 15:01 saehm