added cors headers for monitoring tvs

This commit is contained in:
Luca Haid
2025-09-18 09:10:29 +00:00
parent 1522e65717
commit 986a1b3762

View File

@@ -9,8 +9,12 @@ class CpeprovisioningController extends mfBaseController
if ($this->action !== 'CountOpenProvisionings') {
http_response_code(403);
die('Forbidden');
} else {
header("Access-Control-Allow-Origin: https://noc.xinon.at");
header("Access-Control-Allow-Methods: POST, GET, OPTIONS");
header("Access-Control-Allow-Headers: Content-Type, Authorization");
return;
}
return;
}
$this->needlogin = true;