summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-08-28 23:50:59 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-08-28 23:50:59 +0200
commitdec43f5e77dc34f71879a40839ac6f7ffe369c13 (patch)
tree1091cc97988b24fd56fab16654f1a1da357c7d20 /tests
parent47436cd007694492ac0ab9530e33f890189d54b9 (diff)
also allow authorization header
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/external/NewsAPITest.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit/external/NewsAPITest.php b/tests/unit/external/NewsAPITest.php
index 8fbb3eea9..2bc649c1c 100644
--- a/tests/unit/external/NewsAPITest.php
+++ b/tests/unit/external/NewsAPITest.php
@@ -106,6 +106,7 @@ class NewsAPITest extends ControllerTestUtility {
$this->assertEquals('*', $headers['Access-Control-Allow-Origin']);
$this->assertEquals('PUT, POST, GET, DELETE', $headers['Access-Control-Allow-Methods']);
$this->assertEquals('true', $headers['Access-Control-Allow-Credentials']);
+ $this->assertEquals('Authorization', $headers['Access-Control-Allow-Headers']);
$this->assertEquals('1728000', $headers['Access-Control-Max-Age']);
}