Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

Error trying to load a page using the jquery .load() method

I am getting the following error when running .load() method:

XMLHttpRequest cannot load https://fs18.formsite.com/officeforms.... No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://appery.io' is therefore not allowed access.

The javascript is:

code
Apperyio("html_3").load("https://fs18.formsite.com/officeforms/form16/index.html");
/code

where html_3 is a html component

Any idea how I can get around this?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Error trying to load a page using the jquery .load() method

Hello Terry,

Please check, does it work on the real mobile device?

Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

Error trying to load a page using the jquery .load() method

Yes, it works as a google .apk app, but not as a web app

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Error trying to load a page using the jquery .load() method

This is related to the CORS mechanism: https://developer.mozilla.org/en-US/d...

Do you need to have a web-based app?

Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

Error trying to load a page using the jquery .load() method

Yes, it is to be used if user does not have android or ios

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Error trying to load a page using the jquery .load() method

It is impossible to use it on the Appery.io server, but you can config your own server for that: http://stackoverflow.com/questions/27...

Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

Error trying to load a page using the jquery .load() method

I have found out from my client that he can provide the embed code for this link and my problem is solved

Return to “Issues”