SeldonIO / seldon-server

Machine Learning Platform and Recommendation Engine built on Kubernetes
https://www.seldon.io/
Apache License 2.0
1.47k stars 300 forks source link

CORS: "Access-Control-Allow-Origin" #40

Open thesuperzapper opened 7 years ago

thesuperzapper commented 7 years ago

Is there currently support for adding the "Access-Control-Allow-Origin" header to the REST API requests? Nearly all modern browsers are set to block those sorts of requests without that header.

(Obviously this is ignoring JSONP, which has its share of security concerns.)

gsunner commented 7 years ago

There is no support for CORS at present, its something we could add in the future. Calls from javascript can use JSONP by passing a jsonpCallback. see http://docs.seldon.io/api-javascript.html

Hope this helps.