function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jchanowitzjchanowitz 

Cross domain issue when calling Apex Code from Flex

I’m trying to invoke Apex code exposed as a web service from Flex using the Flex Toolkit, and am having cross domain security issues again.  It works fine when I run it as a local file.  When running from a domain, I get back "Security error accessing url."

 

The policy file that the Toolkit loads is at:

 

http://na3-api.salesforce.com/services/Soap/u/cross-domain.xml

 

But the endpoint that I’m calling is at:

 

http://na3-api.salesforce.com/services/Soap/class/MyClass

 

The Flash Player Security White Paper says “The scope of the permissions defined in a policy file includes all resources within the directory and within nested subdirectories.”

 

So it appears that the above policy file only supports API calls, and not Apex Code calls.  Is there, or could there be, a policy file to support both?

Ron HessRon Hess
yes, there could be it would have to be moved or added to the level above the difference in paths.
we'll look into adding this file.
jchanowitzjchanowitz
That would be great.
 
Can you post back here when it's up with its location?