summaryrefslogtreecommitdiffstats
path: root/external
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-09-02 16:16:54 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-09-02 16:16:54 +0200
commit657df718bdae25485575346e0a9812bdb6db6c2b (patch)
tree5b70f02d122df402e0c92e0f18fe4b5291dbeae1 /external
parentd9c499994467a19b816d2ba4c9e332fe9a756d93 (diff)
fixing cors again
Diffstat (limited to 'external')
-rw-r--r--external/newsapi.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/external/newsapi.php b/external/newsapi.php
index 067334008..1121f3400 100644
--- a/external/newsapi.php
+++ b/external/newsapi.php
@@ -79,8 +79,8 @@ class NewsAPI extends Controller {
*/
public function cors() {
// needed for webapps access due to cross origin request policy
- if(isset($this->request->server['Origin'])) {
- $origin = $this->request->server['Origin'];
+ if(isset($this->request->server['HTTP_ORIGIN'])) {
+ $origin = $this->request->server['HTTP_ORIGIN'];
} else {
$origin = '*';
}