seldon-server icon indicating copy to clipboard operation
seldon-server copied to clipboard

CORS: "Access-Control-Allow-Origin"

Open thesuperzapper opened this issue 7 years ago • 1 comments

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.)

thesuperzapper avatar Jan 30 '17 21:01 thesuperzapper

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.

gsunner avatar Feb 01 '17 15:02 gsunner