【问题标题】:Could someone explain why my code is giving me the following error in safari?有人可以解释为什么我的代码在 safari 中给我以下错误吗?
【发布时间】:2015-05-03 02:28:21
【问题描述】:

我最近一直在为我的大厅中的显示器构建一个覆盖系统。我使用的嵌入标签如下:

    <embed src="flatly.theme/index.html" style="width:237px;height:344px;left:0px;top:0px;z-index:1;position:absolute;">

这是我得到的错误:

    [Error] XMLHttpRequest cannot load http://xml.weather.yahoo.com/forecastrss/CAXX0504.xml. Origin null is not allowed by Access-Control-Allow-Origin.  (index.html, line 0)

如果有人可以向我解释为什么会发生这种情况以及我如何使它再次流畅运行,那就太好了。

提前致谢

布雷特

【问题讨论】:

    标签: html css xml embed external


    【解决方案1】:
    您尝试在

    【讨论】:

      【解决方案2】:

      您的浏览器在您的“index.html”中检测到跨域请求并阻止他

      【讨论】:

        猜你喜欢
        • 2023-04-02
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-04-09
        • 2020-03-06
        • 2023-02-08
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多