Commit 8c90a903 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

CORS header for multi cams control

parent 9f570c69
...@@ -208,6 +208,8 @@ ...@@ -208,6 +208,8 @@
header("Content-Type: text/xml"); header("Content-Type: text/xml");
header("Content-Length: ".strlen($msg)."\n"); header("Content-Length: ".strlen($msg)."\n");
header("Pragma: no-cache\n"); header("Pragma: no-cache\n");
// allow CORS: needed for multicam controls
header('Access-Control-Allow-Origin: *');
printf($msg); printf($msg);
exit(0); // that's all exit(0); // that's all
} }
...@@ -1110,6 +1112,8 @@ function parseGetNames() { ...@@ -1110,6 +1112,8 @@ function parseGetNames() {
header("Content-Type: text/xml"); header("Content-Type: text/xml");
header("Content-Length: ".strlen($rslt)."\n"); header("Content-Length: ".strlen($rslt)."\n");
header("Pragma: no-cache\n"); header("Pragma: no-cache\n");
// allow CORS: needed for multicam controls
header('Access-Control-Allow-Origin: *');
printf($rslt); printf($rslt);
exit (0); exit (0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment