[PLUGIN] EpicLeaderboard.com online leaderboards for UE5

Hi! Terrific plugin, thank you so much - you rock!

The leaderboards work great in game, but I was trying to add an online web-based leaderboard (so you can see the scores while not in the game), and I’m having a devil of a time with it! For example, if I go to the URL: [FONT=courier new]http://epicleaderboard.com/api/getScores.php?accessID=SOME_ID_KEY_HERE then I get returned a array of scores, so far so good…

…unfortunately, when I try to grab this data from the above URL directly into JavaScript so I can pick it apart to build up a nice looking table I get an “Access-Control-Allow-Origin” error. This ‘Access-Control’ header option would need to be set on your server so that other domains can get access to the data programatically. Some reading: Reason: CORS header 'Access-Control-Allow-Origin' missing - HTTP | MDN

However, with the header flag set it should be as simple as importing jQuery and then going:


$.getJSON("http://epicleaderboard.com/api/getScores.php?accessID=SOME_ID_KEY_HERE").done(function( data ) { alert(data); } );

The “admin” web-interface shows all the scores really nicely, but that can’t be made public because it has the key and ID values as well as the option to delete entries!

The only other possible alternative would be for me to change the (so so grateful it’s open-source!) source code of the plugin to point at my server, and then replicating the set/get leaderboard scores functionality in an uglier and clunkier way that you’ve done it! Say it ain’t so!

Thanks so much for your consideration =D