|
|
|
|
|
Force.com Discussion Boards :
Developer Boards :
General Development :
Re: Security Sandbox Error with Flex/Air 1.0 toolkit
|
|
|
|
|
|
|
|
|
|
|
|
|

|
Re: Security Sandbox Error with Flex/Air 1.0 toolkit
|
|
jeffdonthemic
Regular Contributor
Posts: 138

Message 5 of 12

Viewed 4,585 times
|

|
|
The case is: 02236361
Jeff Douglas
Informa Plc
blog.jeffdouglas.com
|
|
|
|
11-21-2008 08:18 AM
|
|
|
|
|
|
|
|

|
Re: Security Sandbox Error with Flex/Air 1.0 toolkit
|
|
DevAngel
Moderator
Posts: 3185

Message 7 of 12

Viewed 4,561 times
|

|
So, there are lots of possible combinations of security settings, endpoint settings and so on that affect the communication between a Flex app (SOAP API) and the platform.
First, there is a missing x-domain file at www.salesforce.com/service/Soap/u. This file is required to allow your flex application to set the appropriate required html headers for the SOAP messages. We have a fix in progress and expect resolution by early next week.
Still, even with that in place, there are other considerations that you have control over that affect accessibility to the platform. Specifically, if you are hosting your swf on a non-ssl enabled server (http), you must do two things to enable the toolkit. First, you need to set the "protocol" attribute of the connection object to "http" and set the server url to "http://www.salesforce.com/services/Soap/u/14.0". If you don't make this setting the toolkit will default back to ssl (https). Second, you will need to check to make sure that your salesforce.com instance is configured to allow non ssl connections. You can do this by going into Setup and under Administration Setup/SessionSettings verify that the check box next to "Require secure connections" is unchecked. When that box is checked, no matter what method you use to access the platform (web or api) you must us https.
The reason that you need to allow http connections if you are hosting from a non ssl site is because the flashplayer security will not allow mixed security (AFAIK).
Hope this helps.
Cheers
Dave Developer Evangelism BLOG - blog.sforce.com
Follow me on twitter @dcarroll
|
|
|
|
11-21-2008 12:45 PM
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|