added cors headers for monitoring tvs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user