1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-01 10:37:31 +01:00
This commit is contained in:
Pek5892 2022-11-23 17:35:54 +01:00
commit 53f247b44d

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();