📄 cross-domain.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body>
<div id="Layer1" style="position:absolute; left:10px; top:13px; width:725px; height:36px; z-index:1">
<h2 class="title">Flash Player Security</h2>
<p class="title"><font size="2"><span style="font-weight: 400">The Flash
Player 7 includes an additional security feature that does not allow scripts
to be read across domains. It also does not recognize two URLs for the same
site, with and without "www", as being on the same domain. For example, </span>
http://www.yourdomain.com<span style="font-weight: 400"> or not recognized
as being the same as </span>http://yourdomain.com</font></p>
<p class="title"><font size="2"><span style="font-weight: 400">If you chose
to specify a full URL in the "PHP Path" and "Image Path" parameters of the bannerRotator component,
for example </span>http://www.yourdomain.com/banner_scripts<span style="font-weight: 400">,
and your site is accessed by the URL </span>http://yourdomain.com<span style="font-weight: 400">,
a security message will appear from the Flash 7 Player, asking to verifying
the transfer of data.</span></font></p>
<p class="title"><font size="2"><span style="font-weight: 400">The solution
that Macromedia have is to create a </span>crossdomain.xml<span style="font-weight: 400">
policy file on your webserver. This is how you would create it:</span></font></p>
<p class="title"><font size="2"><span style="font-weight: 400">1. Open a new
document in a text editor, such as Notepad.<br>
2. Paste the following code into the document:</span></font></p>
<p class="title"><font size="2" color="#008000">
<span style="font-weight: 400"><?xml version="1.0"?><br>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"><br>
<cross-domain-policy><br>
<allow-access-from domain="yourdomain.com" /><br>
</cross-domain-policy></span></font></p>
<p class="title"><font size="2"><span style="font-weight: 400">3. Change "yourdomain.com"
with your own domain, without the "www".<br>
4. Save this file under the name: </span>crossdomain.xml<span style="font-weight: 400"><br>
5. Upload this file to the root of your webserver (usually the same place
where the HTML files reside).</span></font></p>
<p class="title"><font size="2"><span style="font-weight: 400"><br>
</span></font><font size="2"><span style="font-weight: 400">For more
information on the cross-domain policy file, please see the following
Macromedia article:<br>
<a href="http://www.macromedia.com/support/flash/ts/documents/loadvars_security.htm">
http://www.macromedia.com/support/flash/ts/documents/loadvars_security.htm</a></span></font></p>
<p class="title"> </p>
<p class="title"> </p>
<p class="title"></div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -