silexlabs / Cocktail

An HTML/CSS rendering engine for the Haxe language
http://www.silexlabs.org/haxe/cocktail/
Other
192 stars 34 forks source link

SecurityError: Error #2122 on redirect 30X #199

Closed ybootin closed 11 years ago

ybootin commented 12 years ago

Hi

There's a problem in flash with loading external ressources with a 30X redirect (301,302 ...). The problem is internal to flash.

There's some clue to fix this here : http://jessewarden.com/2009/03/handling-crossdomainxml-and-302-redirects-using-netstream.html http://www.inklink.co.at/blog/?p=14 http://blog.martinlegris.com/2008/02/19/getting-around-the-crossdomainxml-file-when-loading-images-in-as3/

Fix this in Cocktail/port/flash_player/Resource.hx::setNativeRessource

yanhick commented 12 years ago

Hi,

thanks for the tip, I didn't know about this flash player issue. I'm trying to reproduce the bug using the current buzzplayer code, but I don't seem to get SecurityError, I only get IOError from url coming from ping.ebzdev.com

Do you know how I could reproduce the bug ? Thanks

ybootin commented 12 years ago

To reproduce the bug, you need to load an external image that is serve with a redirect 302 to an another domain. You must configure a web server.

ex : http://mydom.com/myimage.jpg => 302 redirect => http://myotherdom.com/myimage.jpg and each domain must serve a crossdomain.xml file

We can reproduce with the buzzplayer, but not with current example.

thx,

Yohan

yanhick commented 12 years ago

Thanks, I'll do it this way

yanhick commented 12 years ago

I fixed the bug, it now works with my test case