问题
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