How do I ajax requests ?

0 favourites
  • 3 posts
From the Asset Store
2D Tile Set
$2.99 USD
Tile map for your 2d platformer games, custom sets available on request
  • 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!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you open the web browser debugger you see the requests in plain text.

    Is there a way to hide the AJAX request?

    No, you can't hide network requests. But normal users won't see them anyway, as normal users don't look in dev tools!

  • Thanks for your answer.

    That's what I thought.

    Have a nice day!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)