allowed header Authorization

This commit is contained in:
2026-04-02 08:23:39 +02:00
parent 8f9c744134
commit 70701bb8f1

View File

@ -293,7 +293,7 @@ class APIlite
header('Access-Control-Allow-Origin: ' . $origin); header('Access-Control-Allow-Origin: ' . $origin);
header('Access-Control-Allow-Credentials: true'); header('Access-Control-Allow-Credentials: true');
header('Access-Control-Allow-Methods: GET, POST, OPTIONS'); header('Access-Control-Allow-Methods: GET, POST, OPTIONS');
header('Access-Control-Allow-Headers: Origin, Content-Type, Accept'); header('Access-Control-Allow-Headers: Origin, Content-Type, Accept, Authorization');
echo json_encode($arr); echo json_encode($arr);
exit; exit;
} }