This commit is contained in:
Gnieark 2016-06-07 16:49:34 +02:00
parent e2a642c9a6
commit 158e0d2eb6

View File

@ -3,6 +3,10 @@
* stupid IA for battle ship
* choose by random a free column
*/
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST');
header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept');
$in=file_get_contents('php://input');
$params=json_decode($in, TRUE);
$grid=$params['board'];