我开发了一个我在salesforce visualforce页面上使用的flex组件。当我在本地机器上运行该flex组件时,它工作正常。但是,当我通过salesforce页面运行时,它说
*** Security Sandbox Violation ***
Connection to https://ap1.salesforce.com/services/async/28.0/job/750900000004QUe/batch halted - not permitted from https://ashcloud.ap1.visual.force.com/resource/1375959623000/ashcloud__Flash/Salesforce_Bulk_Upload.swf
httpStatusHandler: [HTTPStatusEvent type="httpStatus" bubbles=false cancelable=false eventPhase=2 status=0 redirected=false responseURL=null]
securityErrorHandler: [SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2170: Security sandbox violation: https://ashcloud.ap1.visual.force.com/resource/1375959623000/ashcloud__Flash/Salesforce_Bulk_Upload.swf cannot send HTTP headers to https://ap1.salesforce.com/services/async/28.0/job/750900000004QUe/batch."]
请注意,我已经通过以下方式加载了Salesforce跨域文件:
Security.loadPolicyFile("https://www.salesforce.com/services/crossdomain.xml");
Security.loadPolicyFile("https://www.force.com/services/crossdomain.xml");
在控制台上显示警告:
Warning: Domain www.force.com does not explicitly specify a meta-policy, but Content-Type of policy file https://www.force.com/crossdomain.xml is 'text/x-cross-domain-policy'. Applying meta-policy 'by-content-type'.
Warning: Domain www.salesforce.com does not explicitly specify a meta-policy, but Content-Type of policy file https://www.salesforce.com/crossdomain.xml is 'text/x-cross-domain-policy'. Applying meta-policy 'by-content-type'.
当flex组件尝试访问Salesforce Bulk API时,它会向我显示安全性错误。如何从flex组件中获取API并解决此安全问题?
由于