cbrain icon indicating copy to clipboard operation
cbrain copied to clipboard

CORS white list for Javascript API client

Open xlecours opened this issue 7 years ago • 2 comments

could we add a white list of domain(s) where a Javascript client for the REST API could be served and send HTTP request from?

The missing response header is Access-Control-Allow-Origin

xlecours avatar Aug 30 '18 20:08 xlecours

I'm not sure what to do. What would be the values for the CORS domains? How can CBRAIN as a service know which other domains can fetch data from it and which cannot?

What is this blocking right now?

prioux avatar May 14 '19 21:05 prioux

I suspect it's because we want some LORIS servers to query CBRAIN ? So am I right in thinking that the CBRAIN admins could have a text box somewhere where he/she can enter some domain names, and from then on CBRAIN would add these domains to the CORS response header?

prioux avatar May 14 '19 21:05 prioux