ar70plm's Recent Forum Activity

  • > I do not have HTTPS certificate on the server. Maybe this is a problem?

    That is almost definitely the problem.

    I'm going to venture a guess that the J5 is using an older version of Chrome that allowed you to access non secure sites but it doesn't give the http origin as a security measure, which would normally get blocked by AJAX being off-site. That's most likely is why you're seeing it's IP and not an origin. You may have been allowed to run your previous script as it allowed any site to run it. My script only allows specific sites to access it so it would have failed to run.

    The J6 and the desktop are using newer versions of Chrome which are simply refusing to let you go from a secure site (https://preview.construct.net) to your insecure site (http://www.mysite.com) which is why they're not even attempting to make the AJAX call.

    It's the same problem the other guy was having in the post I linked to: trying to make an AJAX call to a http site.

    Nice! So HTTP is not supported from most of the browsers from computers and mobiles, HTTPS works well, tested now. Thank you very much for your help!

  • And this brings up another question. If you're accessing it from the phone's browser, which browser are you using? The Samsung browser or Chrome?

    Well on my PC im using chrome and on the mobile devices chrome as well

    What i see in the httporigin.log right now is 79.118.33.7 witch is my provider ip atm, and this is writen when i access Myapp from J5.

    If i access it from Construct browser or J6+ nothing is added in httporigin.log (im clearing text from httporigin.log every try i make a AJAX call)

    I do not have HTTPS certificate on the server. Maybe this is a problem?

  • Your English is just fine.

    Yea, it's pretty annoying not to see what the actual AJAX error is.

    If you read further down that post above there's some code to log incoming requests to file so you can actually see if the AJAX requests are coming through. That would be my first test to see if the various devices are even making the requests and if they are, do they have an origin.

    Did that.

    When i try the app from my J5 my ip logs in httporigin.log but when i try from construct 3 browser or J6+ nothing is writen in httporigin.log

    Its like something from construct 3 host (or my local browser) and from samsung J6+ browser is blocking the AJAX action this is the only reason i think, but what and how can i solve this problem?

    :(

  • Just posted this reply elsewhere. See if this fixes it:

    https://www.construct.net/en/forum/construct-3/general-discussion-7/ajax-changed-recently-not-140404#forumPost975309

    Well.. I have Access-Control-Allow-Origin: "*" set on my server. My problem is from local browser preview.construct.net ajax is not working and from one of my devices samsung J6+ not working. On this 2 cases AJAX error triggers but i cant see what error. Ajax.LastData is empty

    I have another device samsug J5 and Samsung note 8 and is working on them

    Dont care now about allow origin from * is a big security issue im in dev mode right now.

    I cant see the patern here... im trying to make the app to work on most of mobile phones

    Maybe im missing something?

    Sorry for my bad english.

  • Hello.

    I have an app in dev, it uses mysql database im making calls and requests with ajax.

    If i test the app in construct 3 play app local browser, the ajax calls doesent work the app do not send any requests to server, if i export the app for mobile on one of my devices works ok ajax calls are made ajax last data is ok but on other device that i have it doesent work its the same as on local browser preview project why on some devices ajax works and on some doesent

    Allow cross domain * is set on the server with the database

    Tagged:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • You do not have permission to view this post

  • Hello everybody!

    Just purchased Construct 3 license a couple of days ago

    Im almost finished my project but now i have a big problem, the last part of the project would be a social share button for Facebook, well here i hit a wall big one.. and i cant figure out how can i solve this.

    If i use Facebook plugin from Construct 3 addons and call a share action it wont work on mobile apk only on HTML5, if i use browser to go directly to share url it will open a new chrome tab or whatever browser is prefered where it asks the user to login first, since the majority of facebook users uses the app and not the browser this would be a big big issue and a big - to construct 3.

    It is there any way or plugin to make facebook login and share possible in mobile app?

    Thank you in advance

ar70plm's avatar

ar70plm

Member since 6 May, 2019

None one is following ar70plm yet!

Trophy Case

  • 5-Year Club
  • Email Verified

Progress

6/44
How to earn trophies