ソースを参照

add Patch method to preflight

Maurits van der Schee 7年前
コミット
bd2dcdf87e
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      api.php

+ 1
- 1
api.php ファイルの表示

@@ -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'])) {

読み込み中…
キャンセル
保存