allow cross-site xrd/lrdd/webfinger
This commit is contained in:
parent
59d9070d13
commit
c9604ef578
|
@ -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);
|
||||
|
|
|
@ -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…
Reference in a new issue