Browse Source

allow cross-site xrd/lrdd/webfinger

pull/1/head
Friendika 9 years ago
parent
commit
c9604ef578
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      include/hostxrd.php
  2. +1
    -1
      mod/xrd.php

+ 1
- 0
include/hostxrd.php 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);


+ 1
- 1
mod/xrd.php 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');


Loading…
Cancel
Save