git.cweiske.de
/
playVideoOnDreamboxProxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
af9c489
)
Add CORS header for firefox extension
v1.1.0
author
Christian Weiske
<cweiske@cweiske.de>
Thu, 7 Mar 2019 19:52:35 +0000
(20:52 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Thu, 7 Mar 2019 19:52:35 +0000
(20:52 +0100)
www/play.php
patch
|
blob
|
history
diff --git
a/www/play.php
b/www/play.php
index 502e3f24ce50c1b703fea9ce6cb73609b6def223..d96764d3a8b7487c2ae99c58be9865dc407fbb00 100644
(file)
--- a/
www/play.php
+++ b/
www/play.php
@@
-8,6
+8,9
@@
if (file_exists($cfgFile)) {
include $cfgFile;
}
include $cfgFile;
}
+//for the firefox extension
+header('Access-Control-Allow-Origin: *');
+
if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] == 'GET') {
require __DIR__ . '/form.php';
exit();
if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] == 'GET') {
require __DIR__ . '/form.php';
exit();