Browse Source

Improve CSRF handling

Maurits van der Schee 7 years ago
parent
commit
bef88a9c8b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      api.php

+ 1
- 1
api.php View File

@@ -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';

Loading…
Cancel
Save