add CORS headers
continuous-integration/drone/push Build is passing Details

pull/3/head
remrem 1 year ago
parent 10018d4de8
commit a77244797a

@ -5,6 +5,8 @@ require_once "gateway/file_gateway.php";
require_once "database_con.php";
require_once "token.php";
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: Authorization, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Allow-Origin");
header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE");
use Psr\Http\Message\ResponseInterface as Response;

Loading…
Cancel
Save