【问题标题】:source URI is not allowed in this document此文档中不允许使用源 URI
【发布时间】:2018-11-06 09:37:50
【问题描述】:

我正在我的localhost 上的网站上工作,突然我现在遇到了这个错误。

我在 Firefox 上收到此错误

<script> source URI is not allowed in this document

chrome 上什么也没有,但如果我尝试使用文件代码,我会得到:

Application Error: There was a problem getting data for the application you requested. The application may not be valid, or there may be a temporary glitch. Please try again later.

基本上是为:https://connect.facebook.net/en_US/sdk.js.

浏览器甚至不发送文件的 GET 请求。

以前一切都完美无缺。不知道为什么我会得到这个。

【问题讨论】:

    标签: browser http-headers


    【解决方案1】:

    我在两个浏览器上都安装了一个扩展程序。它阻止它加载。

    如果您有任何 VPN、隐藏跟踪扩展程序,则需要将其禁用。

    在我的例子中,它是 Disconnect firefox/chrome 扩展。

    【讨论】:

    • 你救了我的理智! :) 最疯狂的是,这个问题在一切工作了一周多之后才突然开始
    • 这个答案之后出现的一个可能原因(我认为)是 Firefox 跟踪保护。尝试禁用它也可以解决此问题。
    猜你喜欢
    • 2021-06-26
    • 2013-12-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多