Skip to content

Commit

Permalink
PHP Cors Proxy: Allow more CORS headers and less HTTP methods
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Jul 12, 2024
1 parent 54ca521 commit 2546c65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/playground/php-cors-proxy/proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
// Set CORS headers
function set_cors_headers() {
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS");
header("Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With");
header("Access-Control-Allow-Methods: GET, POST, HEAD, OPTIONS");
header("Access-Control-Allow-Headers: *");
}

// Handle preflight request
Expand Down

0 comments on commit 2546c65

Please sign in to comment.