Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-web-393
Commits
8c90a903
Commit
8c90a903
authored
May 09, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CORS header for multi cams control
parent
9f570c69
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
24 deletions
+28
-24
parsedit.php
src/php_top/parsedit.php
+28
-24
No files found.
src/php_top/parsedit.php
View file @
8c90a903
...
...
@@ -208,6 +208,8 @@
header
(
"Content-Type: text/xml"
);
header
(
"Content-Length: "
.
strlen
(
$msg
)
.
"
\n
"
);
header
(
"Pragma: no-cache
\n
"
);
// allow CORS: needed for multicam controls
header
(
'Access-Control-Allow-Origin: *'
);
printf
(
$msg
);
exit
(
0
);
// that's all
}
...
...
@@ -1110,6 +1112,8 @@ function parseGetNames() {
header
(
"Content-Type: text/xml"
);
header
(
"Content-Length: "
.
strlen
(
$rslt
)
.
"
\n
"
);
header
(
"Pragma: no-cache
\n
"
);
// allow CORS: needed for multicam controls
header
(
'Access-Control-Allow-Origin: *'
);
printf
(
$rslt
);
exit
(
0
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment