Skip to content

Commit ba270fb

Browse files
committed
Added X-Requested-With to Cors handler
1 parent e8832b4 commit ba270fb

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
44

55
## [Unreleased][unreleased]
66

7+
## 1.10.0 - 2016-12-14
8+
9+
### Added
10+
11+
* Added X-Requested-With header to Cors handler
12+
713
## 1.9.1 - 2016-11-28
814

915
### Fixed

src/Handlers/CorsPreflightHandler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public function __construct(Response $response)
1818
public function handle($params)
1919
{
2020
$this->response->addHeader('Access-Control-Allow-Headers', 'Authorization');
21+
$this->response->addHeader('Access-Control-Allow-Headers', 'X-Requested-With');
2122
return new JsonApiResponse(Response::S200_OK, []);
2223
}
2324
}

0 commit comments

Comments
 (0)