1
1
Fork 0

allow cross-site xrd/lrdd/webfinger

This commit is contained in:
Friendika 2011-06-25 19:40:37 -07:00
parent 59d9070d13
commit c9604ef578
2 changed files with 2 additions and 1 deletions

View 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);

View 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');