Page 1 of 1

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

Posted: Fri Jan 13, 2017 5:32 pm
by Terry Gilliver

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?


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

Posted: Fri Jan 13, 2017 5:54 pm
by Serhii Kulibaba

Hello Terry,

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


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

Posted: Tue Jan 17, 2017 2:34 pm
by Terry Gilliver

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


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

Posted: Wed Jan 18, 2017 9:45 am
by Serhii Kulibaba

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

Do you need to have a web-based app?


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

Posted: Wed Jan 18, 2017 2:00 pm
by Terry Gilliver

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


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

Posted: Wed Jan 18, 2017 2:24 pm
by Serhii Kulibaba

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...


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

Posted: Mon Jan 23, 2017 12:39 pm
by Terry Gilliver

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