CORS angularjs

  • 51 Views
  • Last Post 2 weeks ago
damian.zarnowski@billennium.pl posted this 2 weeks ago

I'm implementing your  API. I encountered a problem with query POST with basic authentication.

It's because of don't handle query OPTIONS by yours API. This is my error:

angular.js:10967 OPTIONS https://cloud.ocrsdk.com/processImage 404 (Not Found).

When I have turned off CORS on browser chrome, then everything works fine. 

Will OPTIONS be ever available? OR maybe some tips for me. How I can implement this without proxy middleware, and thirdy party API.

Best wishes

Oksana Serdyuk posted this 2 weeks ago

ABBYY Cloud OCR SDK does not support the cross-domain requests (the CORS mechanism) because of the security reasons. In order to send the request from the page you need to pass the login and password to the application in this request, and it is very easy to get this data from the page code. So, it is impossible to use the service in such way. You should use the server component instead.

According to our product analyst, we do not plan to change this.

Close