English 中文(简体)
为什么当目标既出现在当地东道方时,闪电要求交叉口号吗?
原标题:Why is Flash demanding a crossdomain.xml file when the .swf and http target are both on localhost?

在我有弹性服用机要求安装服务器时,我可以提出小型客户/服务器测试申请。 该服务器的仪器是我在当地机器上运行的,在8001号港口听。 客户是我在当地运行的垫子,并使用<条码>mx.rpc.http.HTTPservice来申请网页。

正在按以下方式设立吉大港定居地:

_HttpService = new HTTPService();
_HttpService.url = "http://localhost:8001";
_HttpService.contentType = "text/xml";

当我提出基本页面要求时,我的服务器机头收到<条码>>GET / Crossdomain.xml HTTP/1.1>申请,但这一申请由于我没有手头,因此没有成功。 我没有这样做的原因是,这都是在我的当地机器(现在)上发生的,我没有必要(我不认为)。

在我使用弹性3.x时,我肯定是在没有交叉钥匙的情况下工作的。 我认为,我也与第4号灵活性合作。 现在我用4.5灵活度。 这里是否有问题,可能是因为安全政策的变化?

www.un.org/Depts/DGACM/index_spanish.htm 所有这一切都发生在当地东道市,因此,请求交叉口号的闪电作用者为何?

在这种帮助的情况下,我的阿斯辛茨·Responder正在回过来的具体错误是:

[FaultEvent fault=[RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"] messageId="F43DCBFF-E99A-99CC-57D8-535C13C7CD48" type="fault" bubbles=false cancelable=true eventPhase=2]
最佳回答

或许是,尽管在客户网页和服务器之间有相同的东道方和礼宾,但不同的港口原因 急切要失败同样的试样,要求交叉主.xml看到它允许做什么。 页: 1 闪电含量在80港运行? 如果是这样的话,将Wikipedia关于同一来源政策的文章(http://en.wikipedia.org/wiki/Same_origin_policy)列入详细内容。

交叉主.xmlt似乎对当地测试过于繁琐,在帮助方面有大量文件记录。 你们可以在网站的根基中建立一个交叉主轴。

<?xml version="1.0"?> 
<!-- http://localhost/site/crossdomain.xml --> 
<cross-domain-policy> 
    <site-control permitted-cross-domain-policies="all"/> 
    <allow-access-from domain="*" to-ports="*"/> 
</cross-domain-policy>

在你基本上允许任何领域要求内容时,我不会把上述内容用于当地发展以外的任何东西。

希望这一帮助!

问题回答

利用政策档案。 我发现,由于服务器没有具体说明内容类型,政策档案被否定。 这就解释了为什么无法找到任何问题。

希望有助于人们。

In Flex 4.5 Mac /Users/[YOUR_USER_NAME]/Library/Preferences/Macromedia/Flash Player/Logs>tail -f policyfiles.txt





相关问题
Disable button tooltip in AS3

I want to disable the tooltip on certain buttons. The tooltip manager seems to be an all or nothing solution. Is it possible to disable the tooltip for just one or two buttons?

Multiple Remote call made simultenously

I was making multiple remote calls and they are done sequentially and when I am getting a result event back it s triggering calls to all the methods with ResultEvent as an argument . I am supposed to ...

Attaching a property to an event in Flex/AS3

I have a parameter that needs to be passed along with an event. After unsuccessful attempts to place it on the type by extending the class, I ve been advised in another SO question to write a custom ...

Clearing RSL in Cache

I have built a flex application which has a "main" project and it is assosciated with a few RSL s which are loaded and cached once i run my "main" application. The problem i am facing is that the ...

What s a good way of deserializing data into mock objects?

I m writing a mock backend service for my flex application. Because I will likely need to add/edit/modify the mock data over time, I d prefer not to generate the data in code like this: var mockData =...

AS3 try/catch out of memory

I m loading a few huge images on my flex/as3 app, but I can t manage to catch the error when the flash player runs out of memory. Here is the what I was thinking might work (I use ???? because i dont ...

热门标签