Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess 游猎及;阻止来自不同域的iframe内容_.htaccess_Iframe_Amazon S3_Safari_Cors - Fatal编程技术网

.htaccess 游猎及;阻止来自不同域的iframe内容

.htaccess 游猎及;阻止来自不同域的iframe内容,.htaccess,iframe,amazon-s3,safari,cors,.htaccess,Iframe,Amazon S3,Safari,Cors,我对Safari阻止来自源Iframe的内容存在问题。下面是一个场景 测试URL: 我正在撰写一本关于Amazon S3的书,该书位于以下位置: 它适用于除Safari之外的所有浏览器 在Amazon上,我将此CORS配置添加到bucket中: <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <CORSRule> <AllowedOrigin>*&

我对Safari阻止来自源Iframe的内容存在问题。下面是一个场景

测试URL:

我正在撰写一本关于Amazon S3的书,该书位于以下位置:

它适用于除Safari之外的所有浏览器

在Amazon上,我将此CORS配置添加到bucket中:

<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
    <CORSRule>
        <AllowedOrigin>*</AllowedOrigin>
        <AllowedMethod>GET</AllowedMethod>
        <MaxAgeSeconds>3000</MaxAgeSeconds>
        <ExposeHeader>Accept-Ranges</ExposeHeader>
        <ExposeHeader>Content-Encoding</ExposeHeader>
        <ExposeHeader>Content-Length</ExposeHeader>
        <ExposeHeader>Content-Range</ExposeHeader>
        <AllowedHeader>*</AllowedHeader>
    </CORSRule>
</CORSConfiguration>
但是,在Safari中,内容不会出现,控制台会显示一系列被阻止的帧错误,如下所示:

[Error] Blocked a frame with origin "http://sprungtest.s3-website-us-east-1.amazonaws.com" from accessing a frame with origin "http://sprungstage.com". Protocols, domains, and ports must match.
    (anonymous function) (swfaddress.js, line 8)

任何帮助都将不胜感激。

这似乎仅限于Flash应用程序(SWF)。我尝试了一个仅使用图像的示例,效果很好:。我还在两台服务器上都放了crossdomain.xml,但都没有用。你能找到这个吗?
[Error] Blocked a frame with origin "http://sprungtest.s3-website-us-east-1.amazonaws.com" from accessing a frame with origin "http://sprungstage.com". Protocols, domains, and ports must match.
    (anonymous function) (swfaddress.js, line 8)