Add CORS headers and fix some fields name

This commit is contained in:
dario-cfpt
2020-03-09 22:43:59 +01:00
parent a561ac89f3
commit 2d2bf6ea88
2 changed files with 9 additions and 6 deletions

View File

@ -1,6 +1,9 @@
<?php
require('fecharts.php');
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept');
$fecharts = new fecharts();
// Explode the URI