andreyz30001 / flashcanvas

Automatically exported from code.google.com/p/flashcanvas
0 stars 0 forks source link

FlashCanvas doesn't recognise a same-origin image load when a full path is used #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Try to load an image from the same domain that hosts flashcanvas.swf (which 
may be different to the domain of the enclosing page), using a full URL e.g. 
'http://example.com/image.png'

What is the expected output? What do you see instead?

There's no need for a crossDomainPolicy file or proxying here, because we're on 
the SWF domain. However, when a full URL is used (as is required when our SWF 
is on a different server, such as a CDN), flashcanvas tries to proxy 
unnecessarily. This breaks images if proxy.php isn't set up, or results in 
excess server load if it is.

What version of the product are you using? On what operating system?

FC 1.5 Pro, IE6 and IE8

Please provide any additional information below.

I've worked around this for now by setting window.FlashCanvasOptions = 
{usePolicyFile: true}; -- but it would be nice if FlashCanvas could recognise 
when the server that's part of a full images path matches the server from which 
the SWF is served, and treat this as a same-origin load.

Original issue reported on code.google.com by george.m...@gmail.com on 27 Sep 2011 at 12:15

GoogleCodeExporter commented 8 years ago
Thank you for your bug report. But I have already fixed that bug in r212.

I should release a new version that solves those problems, but it will take a 
while before the release. For now, you can get the latest beta version from 
here.

http://code.google.com/p/flashcanvas/source/browse/trunk
http://flashcanvas.net/archive/test/FlashCanvasPro_loadFont.zip

I'll close this issue when I release a new stable version.

Original comment by revu...@gmail.com on 27 Sep 2011 at 5:33