Cross domain requests: Javascript vs Flash -


As you may know, browser security model loaded in a page to create cross-domain requests The script does not allow AJAX calls to any domain other than www.example.com). The javascript file could be served completely from a different domain (www.javascript.com/myscript.js) and it is irrelevant it's a similar-basic policy.

Something similar in Flash? But does Flash treat the original page as HTML page where the .swf file was loaded or the original domain that is the service .swf file?

Then loads an .swf file from .swf can load resources from www.example.com or www.swf.com now? I am assuming that there is no cross-domain.exml file setup on either example.com or swf.com.

I think this article tells a lot about the problem you mentioned:

From there:

For website owners, all content supplied by the user should be served from a completely different domain. It already has Yahoo Mail, Hotmail, Wikipedia, and many other major websites, but there is a huge amount of self-contained web applications. Vidhta does not (and would if I could have, for example, "upload a malicious file .com" on apiwiki.twiitter, I could perform cross-subdomain cookies attacks). A partial solution was made possible by flash 10,0,0,2: SWF files are given with the "Content-Attention: Attachment" header, when embedded in a web page. If all user-generated content is served with this header (in no case a bad idea), it can limit your risk, but this is not a very strong solution.

It seems that if you serve content from a different domain and there is no cross-domain policy file, then Flash can not access files from your main server.

In addition, this article explains that

and whatever I write, they are able to trust each other and share with each other. should be there. You may wonder if Flash Advertising is a problem or not. Do they have this problem? No, there are flash ads on the Internet, but since they are almost never hosted on the same domain as the domain you are viewing, they do not have access to data from the primary web site's web site. . Cool


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -