Twitter Bootstrap Alpha 4.0 - 404/403 Response from CDNs in MS Edge

不羁的心 提交于 2019-12-03 17:39:13

问题


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


回答1:


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.




回答2:


In testing this myself I could not get it to work in any browser unless I changed it to HTTPS . Using the following code worked in all browsers for me

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


来源:https://stackoverflow.com/questions/33533605/twitter-bootstrap-alpha-4-0-404-403-response-from-cdns-in-ms-edge

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!