summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2010-04-15 12:52:59 -0400
committerCraig Andrews <candrews@integralblue.com>2010-04-15 12:52:59 -0400
commit1081b06bbe10ee5457bd5c53df4561f512c78ded (patch)
treeec2c7e3fd50f0308e73630fdbf5b9484b565a29c
parentc748933132b58ba3c837da3ad48979cfc6d52b8a (diff)
Allow cross-site ajax with CORS.
Only allows un-credentialed (as in, no cookies or basic auth), no custom headers, and get (no post, put, delete, etc) requests.
-rw-r--r--lib/apiaction.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/apiaction.php b/lib/apiaction.php
index 5245c7ef6..d5580abd3 100644
--- a/lib/apiaction.php
+++ b/lib/apiaction.php
@@ -102,6 +102,7 @@ class ApiAction extends Action
function handle($args)
{
+ header('Access-Control-Allow-Origin: *');
parent::handle($args);
}