download a crossdomain policy for oauth
[potlatch2.git] / net / systemeD / halcyon / connection / XMLConnection.as
index 3000ce9c09220f21beaf2ecc150d3be727689bde..ed6abbc1719bf98409141d367ec2f518e33333d2 100644 (file)
@@ -15,6 +15,11 @@ package net.systemeD.halcyon.connection {
 
                        if (Connection.policyURL!='')
                 Security.loadPolicyFile(Connection.policyURL);
 
                        if (Connection.policyURL!='')
                 Security.loadPolicyFile(Connection.policyURL);
+            var oauthPolicy:String = Connection.getParam("oauth_policy", "");
+            if ( oauthPolicy != "" ) {
+                trace(oauthPolicy);
+                Security.loadPolicyFile(oauthPolicy);
+            }
                }
                
                override public function loadBbox(left:Number,right:Number,
                }
                
                override public function loadBbox(left:Number,right:Number,