diff --git a/src/index.php b/src/index.php index e81d4fb2..d5288de1 100644 --- a/src/index.php +++ b/src/index.php @@ -11,7 +11,7 @@ // CORS: permitir cookies header('Access-Control-Allow-Credentials: true'); // CORS: permitir headers aparte de las permitidas de normal -header('Access-Control-Allow-Headers: Content-Type'); +header('Access-Control-Allow-Headers: *'); // CORS: devolver 200 (y no seguir con el enrutamiento) para peticiones OPTIONS if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') {