From 4c9b22edff16a0d7062d27337ecf442429641ebd Mon Sep 17 00:00:00 2001 From: yuriyfpmislata Date: Sun, 3 Feb 2019 11:00:30 +0100 Subject: [PATCH] headers * --- src/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') {