Skip to content

Commit

Permalink
headers *
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriyfpmislata committed Feb 3, 2019
1 parent 4a00035 commit 4c9b22e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 4c9b22e

Please sign in to comment.