permit cross requests

This commit is contained in:
gnieark 2016-06-02 23:29:30 +02:00
parent 4afea9e2db
commit a5f8065d16
3 changed files with 8 additions and 0 deletions

View File

@ -1,4 +1,7 @@
<?php <?php
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST');
/* /*
* stupid IA for battle ship * stupid IA for battle ship
* choose by random a free column * choose by random a free column

View File

@ -1,4 +1,7 @@
<?php <?php
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST');
$cases=array("0-0","0-1","0-2","1-0","1-1","1-2","2-0","2-1","2-2"); $cases=array("0-0","0-1","0-2","1-0","1-1","1-2","2-0","2-1","2-2");
//remplir l'array //remplir l'array
$freeCases=array(); $freeCases=array();

View File

@ -1,4 +1,6 @@
<?php <?php
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST');
/* /*
* Tic Tac Toe gnieark's IA V2 * Tic Tac Toe gnieark's IA V2
* Gnieark 2016 * Gnieark 2016