Community

CORS angularjs

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

Was this article helpful?

0 out of 0 found this helpful

Comments

1 comment

  • Avatar
    Permanently deleted user

    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.

    0

Please sign in to leave a comment.