Add CORS header for firefox extension master github/master v1.1.0
authorChristian Weiske <cweiske@cweiske.de>
Thu, 7 Mar 2019 19:52:35 +0000 (20:52 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Thu, 7 Mar 2019 19:52:35 +0000 (20:52 +0100)
www/play.php

index 502e3f2..d96764d 100644 (file)
@@ -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();