Flex does not recognize crossdomain.xml policy file

I am using Flex 3 and I want to access a web service on another server. I have successfully imported webservice (Data-> Import) into my application, but when I access the functions of the code itself, I get the following error:

Warning. Domain ... does not indicate a meta-policy. Applying the default meta policy is "all." This configuration is out of date ...

Error: A request for a resource in ... from requestor from ... is rejected due to lack of permissions of the policy file.

Shipping Breach

Connection to ... stopped - prohibited from ...

I installed the policy file "crossdomain.xml" in the root directory of the server on which the web service is installed. This is the contents of this file:

 <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
 <cross-domain-policy>
 <allow-access-from domain="*" secure="false" />
 </cross-domain-policy> 

Security.loadPolicyFile() . ?

+3
2

:

<?xml version="1.0" ?>
<cross-domain-policy>
  <site-control permitted-cross-domain-policies="master-only"/>
  <allow-access-from domain="*"/>
  <allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>
0

, 404 crossdomain.xml. http://servername:port/crossdomain.xml , xml , 404.

0

Source: https://habr.com/ru/post/1776437/


All Articles