Page 1 of 1

the issue with http front end and https back end

Posted: Thu Jul 30, 2015 1:43 pm
by Dongzhi Yang7528784

Dear Support,

I noticed that in my app, the front end pages are accessed from http:// , but the back end server scripts are accessed from https:// . Is this correct?

Is there any way to unify it? preferably I want to use https:// also for the front end pages.

Thanks

Here is my particular problem just to let you know why this is important to me. The problem I have now is , I have the following code in my server script:

response.success('<!DOCTYPE html SYSTEMLogin successfully.. redirecting..',"text/html")

I am trying to return a temporary page to the client, and in that page, I want to reference a javascript "common.js".
The common.js is built in front end, so the url should be "a href="http://" rel="nofollow"http:///a"
I got an error from chrome says:
Mixed Content: The page at 'https://api.appery.io/rest/1/code/b6f...' was loaded over HTTPS, but requested an insecure script 'http://appery.io/app/view/7fd2738c-fd...'. This request has been blocked; the content must be served over HTTPS.

--------------------

I changed http to https, then it works. But I found that, with the same javascript common.js , a different set of localstorage has been created , which breaks my entire localstorage design.


the issue with http front end and https back end

Posted: Fri Jul 31, 2015 3:16 pm
by Illya Stepanov

Hi Dongzhi -

I think you are using this in our web test in Appery.io that is why you are getting such error in Chrome. Try publish your web app and in this case all will be within https://


the issue with http front end and https back end

Posted: Sat Aug 08, 2015 4:46 am
by Dongzhi Yang7528784

Hi Illya,

What do you mean by "publish web app"? Could you let me know how to do that?

My app is still in development phase, i want to test it until everything works fine before packaging it and make it available in google play.

Thanks

Dongzhi


the issue with http front end and https back end

Posted: Sat Aug 08, 2015 4:56 am
by Illya Stepanov

the issue with http front end and https back end

Posted: Sat Aug 08, 2015 5:09 am
by Dongzhi Yang7528784

Hi Illya,

I am trying to pubilsh it using app.appery.io domain. But failed. Please see the screenshot of error message below.


the issue with http front end and https back end

Posted: Sat Aug 08, 2015 5:09 am
by Dongzhi Yang7528784

the issue with http front end and https back end

Posted: Sat Aug 08, 2015 9:16 pm
by Illya Stepanov

Please share this app with us and tell us its name.


the issue with http front end and https back end

Posted: Sat Aug 08, 2015 10:26 pm
by Dongzhi Yang7528784

the issue with http front end and https back end

Posted: Sat Aug 08, 2015 10:29 pm
by Dongzhi Yang7528784

Please see the screenshot below. It says "Hosting is failure".
My app is at : dotoday.app.appery.io
somehow, the app seems to work, though


the issue with http front end and https back end

Posted: Sat Aug 15, 2015 1:26 pm
by Illya Stepanov

For now everything is OK, could you please confirm?