Cross Domain Scripting (yes another one!)

Get help using Construct 2

Post » Tue Dec 13, 2016 12:49 am

Hi everybody,

I have written a silly Christmas game with a high score table. The game is at http://tig0r.com/sendsantapacking.

From here the high-score table works fine.

I've published the game to the Scirra arcade https://www.scirra.com/arcade/action-games/send-santa-packing-13497). However... the high-score table doesn't work (which of course I also found whilst testing on localhost and had to upload the game to the website for it to work).

So... of course I need to enable cross domain scripting.

Ideally I imagine I want to add this to the top of my .php file -

<?
header('Access-Control-Allow-Origin: https://www.scirra.com');
..

...which doesn't work. Worse still I can't even make this work!!

<?
header('Access-Control-Allow-Origin: *');
..

I've read about a billion articles and they all say the same thing.

So what am I missing?!!

Server is Apache.

Many thanks to anybody who can tell me what I've got wrong here! :)
B
10
S
4
G
2
Posts: 8
Reputation: 1,896

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests