forked from GNUsocial/gnu-social
allow cross-origin requests for host-meta
This commit is contained in:
parent
aab265709a
commit
253a55846a
@ -59,6 +59,7 @@ class HostMetaAction extends Action
|
|||||||
Event::handle('EndHostMetaLinks', array(&$xrd->links));
|
Event::handle('EndHostMetaLinks', array(&$xrd->links));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header('Access-Control-Allow-Origin: *');
|
||||||
header('Content-type: application/xrd+xml');
|
header('Content-type: application/xrd+xml');
|
||||||
print $xrd->toXML();
|
print $xrd->toXML();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user