.
This commit is contained in:
parent
e2a642c9a6
commit
158e0d2eb6
|
@ -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'];
|
||||
|
|
Loading…
Reference in New Issue
Block a user