Skip to content

Commit bef88a9

Browse files
committed
Improve CSRF handling
1 parent d3f9c49 commit bef88a9

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
@@ -1102,7 +1102,7 @@ protected function exitWith422($object) {
11021102

11031103
protected function headersCommand($parameters) {
11041104
$headers = array();
1105-
$headers[]='Access-Control-Allow-Headers: Content-Type';
1105+
$headers[]='Access-Control-Allow-Headers: Content-Type, X-XSRF-Token';
11061106
$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';

0 commit comments

Comments
 (0)