Sign in to follow this  
muxxa

Cross domain limitations?

Recommended Posts

I'm trying to embed a chart in html on a page on

 

http://mydomain/mypage.html

 

In this page, I've got

 

 

 

<embed src="http://myotherdomain/xyz/MSLine.swf" flashVars="&dataURL=/xyz/myData.xml ...

 

 

 

both MSLine.swf and myData.xml are on myotherdomain

 

 

 

If I move mypage.html to http://myotherdomain/mypage.html it seems to work.

 

 

 

Is this limitation documented anywhere? Is there any way to work around it?

 

 

 

m

Share this post


Link to post
Share on other sites

There also seems to be limitations when trying to use background images across different domains,

 

 

 

Why can't I set an absolute url for the bgSWF background image? I don't believe there are any xss attack vectors with images :ermm:

Share this post


Link to post
Share on other sites

To clarify,

 

 

 

For the background problem, the HTML is on:

 

http://domain1.com/chart.html

 

 

 

The chart is loaded in javascript by:

 

new FusionCharts("http://domain2.com/MSLine.swf", ...

 

 

 

and in the chart XML, the background is given by:

 

<chart bgSWF='/images/background.png' ...

 

 

 

Which exists at:

 

http://domain2.com/images/background.png

 

 

 

To Quote:

 

"Make sure that the image and the chart SWF file are in the same sub-domain."

 

 

 

Why doesn't this work?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this