git.cweiske.de
/
playVideoOnDreamboxProxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add CORS header for firefox extension
[playVideoOnDreamboxProxy.git]
/
www
/
play.php
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();