From e49228d52d2c0ef42444b20ffcd543241bdf485c Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 7 Mar 2019 20:52:35 +0100 Subject: [PATCH] Add CORS header for firefox extension --- www/play.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/play.php b/www/play.php index 502e3f2..d96764d 100644 --- a/www/play.php +++ b/www/play.php @@ -8,6 +8,9 @@ if (file_exists($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(); -- 2.30.2