基本上我使用Flash來連接到Java服務器。無法使Flash套接字策略文件正常工作
儘管我的Java應用程序回覆到<policy-file-request/>
,在Flash調試日誌它列出了(不知道的順序,因爲有很多):
* Security Sandbox Violation *
Connection to 192.168.1.86:4049 halted - not permitted from http://127.0.0.1:8888/Current/wander.swf
Warning: Timeout on xmlsocket://192.168.1.86:4049 (at 3 seconds) while waiting for socket policy file. This should not cause any problems, but see http://www.adobe.com/go/strict_policy_files for an explanation.
Error: Request for resource at xmlsocket://192.168.1.86:4049 by requestor from http://127.0.0.1:8888/Current/wander.swf is denied due to lack of policy file permissions.
我不明白的是,服務器(端口4049)接收請求,輸出策略文件(附加空字節),然後關閉連接,當然它不應該超時?
我使用的策略文件:
<?xml version="1.0"?>
<cross-domain-policy><allow-access-from domain="*" to-ports="*" />
</cross-domain-policy>
「輸出策略文件(附加空字節),然後關閉連接」。你爲什麼要關閉它? – back2dos 2010-06-08 16:02:29