1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 12:00:06 +02:00
This commit is contained in:
Daniel Neto 2023-08-16 14:11:38 -03:00
parent 1ddf996dd6
commit d6a43bc94d
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ $global['bypassSameDomainCheck'] = 1;
require_once $configFile; require_once $configFile;
require_once $global['systemRootPath'] . 'plugin/API/API.php'; require_once $global['systemRootPath'] . 'plugin/API/API.php';
header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Headers: Content-Type"); header("Access-Control-Allow-Headers: Content-Type, ua-resolution");
$plugin = AVideoPlugin::loadPluginIfEnabled("API"); $plugin = AVideoPlugin::loadPluginIfEnabled("API");
$objData = AVideoPlugin::getObjectDataIfEnabled("API"); $objData = AVideoPlugin::getObjectDataIfEnabled("API");

View file

@ -10,7 +10,7 @@ $global['bypassSameDomainCheck'] = 1;
require_once $configFile; require_once $configFile;
require_once $global['systemRootPath'].'plugin/API/API.php'; require_once $global['systemRootPath'].'plugin/API/API.php';
header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Headers: Content-Type"); header("Access-Control-Allow-Headers: Content-Type, ua-resolution");
$plugin = AVideoPlugin::loadPluginIfEnabled("API"); $plugin = AVideoPlugin::loadPluginIfEnabled("API");
$objData = AVideoPlugin::getObjectDataIfEnabled("API"); $objData = AVideoPlugin::getObjectDataIfEnabled("API");