【问题标题】:Mac OS can't load Bootstrap CDN on any browserMac OS 无法在任何浏览器上加载 Bootstrap CDN
【发布时间】:2017-02-09 14:49:32
【问题描述】:

我目前正在开发一个使用引导程序的网站,但每当我在我的用户帐户中加载该网站时,我都会收到这些错误(指引导程序 CDN)

野生动物园

[Error] Failed to load resource: The operation couldn’t be completed. Connection reset by peer
[Error] Failed to load resource: The operation couldn’t be completed. Connection reset by peer
[Error] Failed to load resource: The operation couldn’t be completed. Connection reset by peer

https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css Failed to load resource: net::ERR_CONNECTION_CLOSED
https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css Failed to load resource: net::ERR_CONNECTION_CLOSED
https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js Failed to load resource: net::ERR_CONNECTION_CLOSED

火狐

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css. (Reason: CORS request failed). <unknown>
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css. (Reason: CORS request failed). <unknown>
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js. (Reason: CORS request failed). <unknown>

发生在我的用户帐户上并且已经发生了一段时间,直到现在我才寻求帮助!

我也无法加载 getbootstrap.com,加载栏只是挂起。 (这也发生在其他网站上)

编辑: 这是在我的标题中

<link rel="stylesheet"href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

【问题讨论】:

    标签: macos twitter-bootstrap


    【解决方案1】:
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css">
    <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    

    将您的标题代码更改为此

    我删除了

    integrity="<string>" crossorigin="anonymous"
    

    来自链接

    【讨论】:

      猜你喜欢
      • 2014-08-17
      • 1970-01-01
      • 2016-05-12
      • 2016-03-06
      • 1970-01-01
      • 2021-08-11
      • 1970-01-01
      • 2014-04-01
      相关资源
      最近更新 更多