Improve CSRF handling
This commit is contained in:
parent
d3f9c49f84
commit
bef88a9c8b
1 changed files with 1 additions and 1 deletions
2
api.php
2
api.php
|
|
@ -1102,7 +1102,7 @@ class PHP_CRUD_API {
|
|||
|
||||
protected function headersCommand($parameters) {
|
||||
$headers = array();
|
||||
$headers[]='Access-Control-Allow-Headers: Content-Type';
|
||||
$headers[]='Access-Control-Allow-Headers: Content-Type, X-XSRF-Token';
|
||||
$headers[]='Access-Control-Allow-Methods: OPTIONS, GET, PUT, POST, DELETE, PATCH';
|
||||
$headers[]='Access-Control-Allow-Credentials: true';
|
||||
$headers[]='Access-Control-Max-Age: 1728000';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue