04:52:11 PM .474 ms --VideoE-- The socket has an SecurityError :
上邊是報錯內容
下邊是根目錄的xml文件
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
<allow-access-from domain="_" to-ports="_"/>
<allow-http-request-headers-from domain="_" headers="_"/>
</cross-domain-policy>
另外我另外開啟一個服務 端口為843,給客戶端返回xml文件還是不行。
$flash_policy = new Worker('tcp://192.168.1.152:843');
$flash_policy->onMessage = function($connection, $message)
{
$xml = '<cross-domain-policy>';
$xml .= '<site-control permitted-cross-domain-policies="all"/>';
$xml .= '<allow-access-from domain="_" to-ports="_"/>';
$xml .= '<allow-http-request-headers-from domain="_" headers="_"/>';
$xml .= '</cross-domain-policy>';
$connection->send($xml."\0");
};
折騰一天都沒找到解決辦法 希望大神給指導下