tleyden / open-ocr

Run your own OCR-as-a-Service using Tesseract and Docker
Apache License 2.0
1.33k stars 223 forks source link

No 'Access-Control-Allow-Origin' header is present on the requested resource #68

Closed GeorgeAnanthSoosai closed 8 years ago

GeorgeAnanthSoosai commented 8 years ago

@tleyden -- I'm getting following error when I incorporate into my mobile application,

XMLHttpRequest cannot load http://192.168.99.100:9292/ocr. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access. The response had HTTP status code 500.

Getting 500 server error..

Can you please advise me what change required on this accept cross domain support ?

It looks, we need to configure Access-Control-Allow-Origin into the api.. Please advise me on this.

GeorgeAnanthSoosai commented 8 years ago

I think, I did it through the proxy setting.. I'm good... thanks for looking this issue