Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

the issue with http front end and https back end

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.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

the issue with http front end and https back end

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://

Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

the issue with http front end and https back end

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

Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

the issue with http front end and https back end

Hi Illya,

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

the issue with http front end and https back end

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

Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

the issue with http front end and https back end

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

the issue with http front end and https back end

For now everything is OK, could you please confirm?

Return to “Issues”