Browse Source

allow cross-site xrd/lrdd/webfinger

pull/1/head
Friendika 11 years ago
parent
commit
c9604ef578
  1. 1
      include/hostxrd.php
  2. 2
      mod/xrd.php

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

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

Loading…
Cancel
Save