|
@@ -1102,7 +1102,7 @@ class PHP_CRUD_API {
|
1102
|
1102
|
|
1103
|
1103
|
protected function headersCommand($parameters) {
|
1104
|
1104
|
$headers = array();
|
1105
|
|
- $headers[]='Access-Control-Allow-Headers: Content-Type';
|
|
1105
|
+ $headers[]='Access-Control-Allow-Headers: Content-Type, X-XSRF-Token';
|
1106
|
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';
|