Skip to content

Commit

Permalink
Added X-Requested-With to Cors handler
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaj committed Dec 14, 2016
1 parent e8832b4 commit ba270fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip

## [Unreleased][unreleased]

## 1.10.0 - 2016-12-14

### Added

* Added X-Requested-With header to Cors handler

## 1.9.1 - 2016-11-28

### Fixed
Expand Down
1 change: 1 addition & 0 deletions src/Handlers/CorsPreflightHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public function __construct(Response $response)
public function handle($params)
{
$this->response->addHeader('Access-Control-Allow-Headers', 'Authorization');
$this->response->addHeader('Access-Control-Allow-Headers', 'X-Requested-With');
return new JsonApiResponse(Response::S200_OK, []);
}
}

0 comments on commit ba270fb

Please sign in to comment.