This is an archived forum post. The information may be outdated. Contact us if you have any questions.

cross origin issue while using the REST API

nagarajhubli wrote on 2013-06-05:

I just created a trial account, and using my username and api key, I am trying to make a REST API from a sample html file which I hosted in my dropbox account to convert HTML to PDF, but I am getting the following error message.

"XMLHttpRequest cannot load Origin is not allowed by Access-Control-Allow-Origin."

I think you should whitelist domains for making CORS -

support wrote on 2013-06-07:
Hello Nagaraj,

Thank you for your feedback. We will consider adding CORS support in future service updates.
nagarajhubli wrote on 2013-06-07:
Is there anyway I can use the REST API through JavaScript?
support wrote on 2013-06-07:
This is not possible at the moment.
ramondonnell wrote on 2013-10-09:
+1 for CORS support