Irial's Recent Forum Activity

  • Thanks for your answer.

    That's what I thought.

    Have a nice day!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey, Construct community!

    I'm trying to figure out how I can hide the AJAX request sent by one of my games.

    For example, to fetch current scores and leaderboard, I make a simple request to a PHP file:

    my_server/getscores.php (because I store different minigames' scores in that db).

    Then, I use it in the game to display the current leaderboard.

    When the player wants to submit his score, I also call a PHP file:

    my_server/savescores.php

    PHP scripts and DBs are on one of my servers, but the game is hosted on another project website (without any db), and I don't want users to see the requests being made to my domain.

    If you open the web browser debugger you see the requests in plain text.

    Is there a way to hide the AJAX request?

    PS: Currently only my server domain and the other project domain are allowed to access the PHP files thanks to a .htaccess file.

    Thanks for your help and have a nice day!

  • I just want to express my gratitude to you guys.

    I was trying to make it work with version r70.1.0 and couldn't figure out what I was doing wrong.

    But when I finally found this thread and tried with version r70.1.1 it worked like a charm !

    Thanks guys

Irial's avatar

Irial

Member since 7 Nov, 2022

None one is following Irial yet!

Trophy Case

  • 2-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

5/44
How to earn trophies