data-team-uhn / NeuralCR

MIT License
26 stars 12 forks source link

CORS policy error: No 'Access-Control-Allow-Origin' header #20

Closed azankl closed 3 years ago

azankl commented 3 years ago

Hi Aryan,

I am working on a Chrome extension that makes use of the NeuralCR API, but I am getting a CORS policy error:

Access to XMLHttpRequest at 'https://ncr.ccm.sickkids.ca/curr/match/?text=optic+disc+swelling+m' from origin 'chrome-extension://dkknhicdbaklmnblmmliepfeekmojahf' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Could you please add the missing header on your server? Thanks Andreas

a-arbabi commented 3 years ago

Hi Andreas,

Thanks for your interest in NCR. The web app provided at ncr.ccm.sickkids.ca is for demonstration purposes. I think the best way to use NCR for your project would be to deploy it from the source code available here (which includes the source code for the web app too).