This commit is contained in:
Pek5892 2022-11-23 17:35:54 +01:00
commit 53f247b44d
1 changed files with 2 additions and 3 deletions

View File

@ -34,9 +34,6 @@ register_shutdown_function('serverError');
include_once __DIR__.'/../core.php';
// Disabilita la sessione per l'API
session_write_close();
// Permesso di accesso all'API da ogni dispositivo
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: POST, GET, PUT, DELETE, OPTIONS');
@ -67,3 +64,5 @@ if (json_last_error() == JSON_ERROR_NONE) {
// Stampa dei risultati
echo $response;
Auth::logout();