0

yos_as3_sdk SecurityError Error #2170

I am trying to get the oauth to work from flash (as3). For this, I am using the yos_as3_sdk-1.3.

There are 2 issues.
1) The examples provided at http://developer.yahoo.com/flash/yos/examples.html are for CS3 and are incompatible with CS5 (the current one)
I used FlashDevelop, so am able to use it.
2) When the swf is loaded from the bin directory, it connects to the login api which opens in a new window as expected.
When the swf is loaded from the webserver, I notice the Security Error - SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2170"

Need help in resolving this.

Note:
The local webserver is of yahoo.com domain. I have set it to test.yahoo.com. The https://api.login.yahoo.com/crossdomain.xml seems to allow requests from yahoo subdomain and also unsecured ones. What else could be the problem?

I read about Local Sandbox env. But that would be helpful when one loads the swf directly from the filesystem (as opposed to loading from the webserver).

by
3 Replies
  • Specific error:

    [SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2170: Security sandbox violation: http://test.yahoo.com/yosfdtst.swf cannot send HTTP headers to https://api.login.yahoo.com/oauth/v2/get_re...st_token."]
    0
  • the yos flash sdk sends an "Accept" header. This seems to be causing issues.

    headers.push( new URLRequestHeader("Accept","application/json") );
    This is in com.yahoo.social.methodgroups.YOSMethodBase.sendRequest method.

    Comment this line, and include the sdk source to compile. The request token will work correctly then
    0
  • Hi Santosh,

    Thanks for the information. I've moved this topic to the more
    appropriate forum "Y!OS SDKs."

    Thanks,
    Yu Wang
    Yahoo! Membership Team
    0
This forum is locked.

Recent Posts

in Y!OS SDKs