我使用as3httpclientlib POST數據到我的web服務,但我不斷 得到以下安全違規。有誰知道如何解決這個問題? 我的crossdomain.xml文件低於安全違規通知。安全性違規:缺乏政策文件權限
注:我使用Apache的代理請求到Web服務,因此目標URL /端口和URL /端口服務的小應用程序都是一樣的 - 即http://192.168.100.101
。此外,crossdomain.xml文件位於網絡應用的根服務於小程序,而網絡服務;然而,由於請求被代理的URL文件http://192.168.100.101/crossdomain.xml
* Security Sandbox Violation * Connection to 192.168.100.101:80 halted - not permitted from http://192.168.100.101/com-web/flex/ComUi.swf Error: Request for resource at xmlsocket://192.168.100.101:80 by requestor from http://192.168.100.101/com-web/flex/ComUi.swf is denied due to lack of policy file permissions.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cross-domain-policy SYSTEM
"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-http-request-headers-from domain="*" headers="*" secure="false" />
<allow-access-from domain="*" to-ports="80, 8080" />
</cross-domain-policy>
感謝。
這是正確的。 as3httpclientlib使用套接字,這需要套接字策略。 – 2011-04-15 15:27:07