Skip to content

Commit 2546c65

Browse files
committed
PHP Cors Proxy: Allow more CORS headers and less HTTP methods
1 parent 54ca521 commit 2546c65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/playground/php-cors-proxy/proxy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
// Set CORS headers
1212
function set_cors_headers() {
1313
header("Access-Control-Allow-Origin: *");
14-
header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS");
15-
header("Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With");
14+
header("Access-Control-Allow-Methods: GET, POST, HEAD, OPTIONS");
15+
header("Access-Control-Allow-Headers: *");
1616
}
1717

1818
// Handle preflight request

0 commit comments

Comments
 (0)