corrigido cors
This commit is contained in:
@@ -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 = []){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user