Facebook policy file error

By now, I'm really tired of facebook crossdomain.xml, finally got it working on downloading images from the server. Now I need to load the variables from my application using flash. I get this error.

Error: [strict] Ignoring policy file at http://apps.facebook.com/crossdomain.xml due to   incorrect syntax.  See http://www.adobe.com/go/strict_policy_files to fix this problem.
*** Security Sandbox Violation ***
Connection to http://apps.facebook.com/feline-frenzy/endpoints/challengewin/ halted - not     permitted from http://media.varheroes.com/flash/endpointstest.swf
Error loading data
Error: Request for resource at http://apps.facebook.com/feline-   frenzy/endpoints/challengewin/ by requestor from    http://media.varheroes.com/flash/endpointstest.swf is denied due to lack of policy file  permissions.

Any solutions?

Here is my code:

Security.loadPolicyFile("http://api.facebook.com/crossdomain.xml");
Security.allowDomain("*");
Security.allowInsecureDomain("*");  

myData = new LoadVars()
myData.load("http://apps.facebook.com/feline-frenzy/endpoints/challengewin/") 
myData.onLoad = function(succes){ 
if(succes){ 
     trace("DATA SAVED!!!1");
  } else trace ("Error loading data") 
} 
+3
source share
2 answers

, Facebook apps.facebook.com Flash. crossdomain.xml , , . , apps.facebook.com/policies/flashpolicy.xml - , . , , - , .

, , . script , facebook . , http://apps.facebook.com/feline-frenzy/endpoints/challengewin/, http://yourserver.com/facebookProxy, - script http- facebook , .

, PHP.

+2

, , URL- Security.loadPolicyFile("http://api.facebook.com/crossdomain.xml"); URL- (, apps.facebook.com/crossdomain.xml)

URL- URL- myData.load("http://apps.facebook.com/feline-frenzy/endpoints/challengewin/"), , .

?

0

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


All Articles