Skip to content

Commit

Permalink
Removed content-type from cors headers
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaj committed Mar 21, 2017
1 parent 2f6c8fa commit d0fd7ee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
### Added

* Added possibility to send current PHPSESSID via API Web Console
* Removed Content-Type from CORS headers

## 1.10.0 - 2016-12-14

Expand Down
1 change: 0 additions & 1 deletion src/Presenters/ApiPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ private function logRequest(ApiLoggerInterface $logger, $code, $elapsed)

protected function sendCorsHeaders()
{
$this->getHttpResponse()->addHeader('Access-Control-Allow-Headers', 'Content-Type');
$this->getHttpResponse()->addHeader('Access-Control-Allow-Methods', 'POST, DELETE, PUT, GET, OPTIONS');

if ($this->corsHeader == 'auto') {
Expand Down

0 comments on commit d0fd7ee

Please sign in to comment.