permit cross requests
This commit is contained in:
parent
4afea9e2db
commit
a5f8065d16
|
@ -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
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user