本文介绍了Twitter Bootstrap Alpha 4.0-MS Edge中CDN的响应404/403的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我想知道为什么在Microsoft Edge浏览器中从MaxCDN或CDNjs使用Twitter Bootstrap Alpha 4.0时为什么会得到以下响应(404/403).

其他说明: -这仅在MS Edge中发生,所有其他现代浏览器均不返回 -这似乎仅在CSS文件中发生,而不是在Bootstrap JS中发生 -这种情况发生在本地和发布时

我只是像往常一样将其加载到<head>中:

<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha/css/bootstrap.min.css" rel="stylesheet" type="text/css" />

更新:

这里也有一篇讨论此问题的文章: 66边缘错误:HTTP403被禁止

解决方案

只要没有修复,您就可以使用3.3.5(与当前的3.3.6相对)没有该错误. /p>

So I was wondering why I was getting the following responses back (404/403) when using Twitter Bootstrap Alpha 4.0 from either MaxCDN or CDNjs in the Microsoft Edge browser.

Other notes: - This only happens in MS Edge, all other modern browsers don't return this - This only seems to happen with the CSS files, not the Bootstrap JS - This happens both locally and when published

I am simply loading it in the <head> as usual:

<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha/css/bootstrap.min.css" rel="stylesheet" type="text/css" />

UPDATE:

There is also a post discussing this same issue here:66 Edge errors: HTTP403 FORBIDDEN

解决方案

As long as there is no fix, you can use 3.3.5 which (as opposed to the current 3.3.6) doesn't have that bug.

这篇关于Twitter Bootstrap Alpha 4.0-MS Edge中CDN的响应404/403的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 14:48