Skip to content

Commit bd2dcdf

Browse files
committed
add Patch method to preflight
1 parent e3d3c1a commit bd2dcdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ protected function exitWith422($object) {
11031103
protected function headersCommand($parameters) {
11041104
$headers = array();
11051105
$headers[]='Access-Control-Allow-Headers: Content-Type';
1106-
$headers[]='Access-Control-Allow-Methods: OPTIONS, GET, PUT, POST, DELETE';
1106+
$headers[]='Access-Control-Allow-Methods: OPTIONS, GET, PUT, POST, DELETE, PATCH';
11071107
$headers[]='Access-Control-Allow-Credentials: true';
11081108
$headers[]='Access-Control-Max-Age: 1728000';
11091109
if (isset($_SERVER['REQUEST_METHOD'])) {

0 commit comments

Comments
 (0)