diff --git a/include/hostxrd.php b/include/hostxrd.php index 987175c331..7040f927d6 100644 --- a/include/hostxrd.php +++ b/include/hostxrd.php @@ -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); diff --git a/mod/xrd.php b/mod/xrd.php index 8ac6ff7cfc..de0c20ea5d 100644 --- a/mod/xrd.php +++ b/mod/xrd.php @@ -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');