告诉你到底什么是crossdomain.xml

http://www.crossdomainxml.org/
别的废话不多说了,上面的网址很全。
为还存在疑惑“怎么不起作用呀”的网友补充几句话。
首先,crossdomain.xml是放在服务器端的文件,什么叫做放在服务器端,就是放在你要获取的文件的所在的那台机器的那个域名下面。比如我自己的网站是xxx.me.com,我的网站上有一个swf要获取xxx.you.com上的文件,那么crossdomain.xml要放在xxx.you.com上才可以。crossdomain.xml里面的内容就是

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
   <allow-access-from domain="*.me.com" />
</cross-domain-policy>

明白了吧。

11 comments

  1. 花果山寨 说道:

    感谢,学习了!

  2. yf 说道:

    网站日志中出现大量的未知IP链接这个文件,会是攻击吗?但是我网站无这个文件。

  3. xingxing 说道:

    多学习长见识

  4. sifudnf 说道:

    我的网站有。但是里面没有内容

  5. Gregg Akahi 说道:

    I just want to mention I am all new to blogging and site-building and really liked your web site. Likely I’m likely to bookmark your blog post . You absolutely have terrific articles and reviews. Appreciate it for revealing your website page.

  6. Rosanna Weng 说道:

    Wow! This can be one particular of the most helpful blogs We have ever arrive across on this subject. Basically Great. I am also a specialist in this topic so I can understand your hard work.

  7. Josef Blumenschein 说道:

    Wow! Its also fastidious paragraph on the topic of JavaScript, I am really keen of learning JavaScript. thanks admin

  8. Pat Tyburski 说道:

    Thank you for another fantastic post. Where else could anyone get that kind of information in such a perfect way of writing? I have a presentation next week, and I am on the look for such info.

  9. Thao Eschette 说道:

    Hey there, You’ve performed a fantastic job. I will definitely digg it and individually suggest to my friends. I am confident they will be benefited from this site.

  10. Ileen Hesselbach 说道:

    I have seen a lot of useful items on your web site about personal computers. However, I’ve the thoughts and opinions that notebook computers are still not quite powerful more than enough to be a good option if you often do jobs that require plenty of power, for instance video editing and enhancing. But for net surfing, word processing, and quite a few other common computer work they are just great, provided you can’t mind the tiny screen size. Thank you sharing your thinking.

  11. mink pink clothing 说道:

    I keep listening to the newscast talk about getting boundless online grant applications so I have been looking around for the top site to get one. Could you advise me please, where could i find some?

发表评论

电子邮件地址不会被公开。