allow cross-site xrd/lrdd/webfinger

pull/1/head
Friendika 2011-06-25 19:40:37 -07:00
rodzic 59d9070d13
commit c9604ef578
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

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

Wyświetl plik

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