diff options
author | Craig Andrews <candrews@integralblue.com> | 2010-04-15 12:52:59 -0400 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2010-04-15 12:52:59 -0400 |
commit | 1081b06bbe10ee5457bd5c53df4561f512c78ded (patch) | |
tree | ec2c7e3fd50f0308e73630fdbf5b9484b565a29c /lib/apiaction.php | |
parent | c748933132b58ba3c837da3ad48979cfc6d52b8a (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.
Diffstat (limited to 'lib/apiaction.php')
-rw-r--r-- | lib/apiaction.php | 1 |
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); } |