Flash security bug - Twitter API

I am trying to use the Twitter API in my Flash application. It works in the local Flash IDE, but does not work when I upload it to my server. I get this error:

Error # 2044: Raw protection Error :. text = Error # 2048: sandbox security violation: http // alpha. {oursite} .com / flash / twitterticker.swf cannot load data from http // twitter.com / statuses / user_timeline / {ouraccount} .xml.

[ignore the lack of ":" in http: // in the msg error message - I don't have enough reputation to post more than one hyperlink :-)]

When I look at Charles, it seems that the error is due to the fact that you did not find the entry for my site in the crossdomain.xml Twitter file. As far as I know, this is not a requirement for using their API. Is something missing?

TIA!

Steve W

+3
source share
1 answer

Looking at the crossdomain file at http://twitter.com/crossdomain.xml , you cannot directly call the twitter API from the flash.

You will need a server proxy or use two-way ExternalInterface, as javascript can bypass the sandbox using JSONP

API twitter Flash. , .

+3

Source: https://habr.com/ru/post/1722144/


All Articles