corrigido cors

This commit is contained in:
Reginaldo
2023-08-04 17:35:22 -03:00
parent ffa32e58ee
commit 5cc06965c0

View File

@@ -2,6 +2,10 @@
namespace app\controllers;
use League\Plates\Engine;
use PDO;
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET, POST, OPTIONS");
header("Access-Control-Allow-Headers: Content-Type");
class Controller extends DBA{
public static function view(string $view, array $data = []){