Commit 1fc31f1d authored by Oleg Dzhimiev's avatar Oleg Dzhimiev
Browse files

added CORS header 1

parent bd6af7c5
Loading
Loading
Loading
Loading
+54 −52
Original line number Diff line number Diff line
@@ -673,6 +673,8 @@ else
function xml_header() {
	header("Content-type: text/xml");
	header("Pragma: no-cache\n");
	// allow CORS: needed for multi cams unified control
	header('Access-Control-Allow-Origin: *');
	echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n";
	echo "<camogm_interface>\n";
}