forked from GNUsocial/gnu-social
		
	allow cross-origin requests for host-meta
This commit is contained in:
		@@ -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();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user