|
@@ -1103,7 +1103,7 @@ class PHP_CRUD_API {
|
1103
|
1103
|
protected function headersCommand($parameters) {
|
1104
|
1104
|
$headers = array();
|
1105
|
1105
|
$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';
|
1107
|
1107
|
$headers[]='Access-Control-Allow-Credentials: true';
|
1108
|
1108
|
$headers[]='Access-Control-Max-Age: 1728000';
|
1109
|
1109
|
if (isset($_SERVER['REQUEST_METHOD'])) {
|