]> git.mxchange.org Git - friendica.git/commitdiff
allow cross-site xrd/lrdd/webfinger
authorFriendika <info@friendika.com>
Sun, 26 Jun 2011 02:40:37 +0000 (19:40 -0700)
committerFriendika <info@friendika.com>
Sun, 26 Jun 2011 02:40:37 +0000 (19:40 -0700)
include/hostxrd.php
mod/xrd.php

index 987175c33164ff7336c9a53259409ab70168314d..7040f927d6c31cc252c4033c975948085e31a756 100644 (file)
@@ -2,6 +2,7 @@
 
 function hostxrd($baseurl) {
 
+       header('Access-Control-Allow-Origin: *');
        header("Content-type: text/xml");
        $tpl = file_get_contents('view/xrd_host.tpl');
        echo str_replace('$domain',$baseurl,$tpl);
index 8ac6ff7cfca81d5b174f2d9f7ac309ab17dcbc26..de0c20ea5d39c5b7ef2b2f12a387429f1fe26d1b 100644 (file)
@@ -24,7 +24,7 @@ function xrd_content(&$a) {
 
        $salmon_key = salmon_key($r[0]['spubkey']);
 
-
+       header('Access-Control-Allow-Origin: *');
        header("Content-type: text/xml");
 
        $tpl = file_get_contents('view/xrd_person.tpl');