How to send request from WKWebView (which uses localhost)?

  • 198 Views
  • Last Post 17 January 2017
peter posted this 16 January 2017

Hi,

I am develpoping an application using your service.

When I make http request to your service from iOS device with WKWebView which works on http://localhost:6985 under its hood, I get the issue - XMLHttpRequest cannot load http://cloud.ocrsdk.com/getTaskStatus?taskId=6d957531-0ef2-4206-8bf3-ea57f8784ab9. Origin http://localhost:6985 is not allowed by Access-Control-Allow-Origin.

But WKWebView cannot work without this embedded server in it.

How can I solve this issue?

Oksana Serdyuk posted this 17 January 2017

Unfortunately, ABBYY Cloud OCR SDK does not support the CORS technologies. We recommend to run the script on the server side, and not the browser.

Close