66 Edge errors: HTTP403 FORBIDDEN

后端 未结 2 1152
庸人自扰
庸人自扰 2021-02-13 13:35
HTTP403: FORBIDDEN - The server understood the request, but is refusing to fulfill it.
(XHR): GET - https://netdna.bootstrapcdn.com/bootstrap/3.3.6/css/less/normalize.le         


        
相关标签:
2条回答
  • 2021-02-13 13:53

    I haven't figured out which 3.3.6 package makes no reference to Less files. But the following steps worked for me. To remove the errors from the console in IE Edge, or any browser for that matter, simply download the "Source Code" package from Bootstrap and at the very least, make sure to reference the less and dist folders from that package, under your Bootstrap css folder. Bootstrap will take care of the rest and you will no longer see the errors in IE edge.

    As already mentioned on this page, don't use the CDN links. My current <head> setup looks like this in my <head> area...

    <!-- Latest compiled and minified CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    
    <!-- Optional theme -->
    <link rel="stylesheet" href="css/bootstrap-theme.min.css">
    

    With a folder structure like so...

    css
      less  
      dist
    

    Hope this helps

    0 讨论(0)
  • 2021-02-13 13:59

    This is because the LESS files are not available in the CDN.

    Maybe other browsers manage to hide this error ?

    Here is the result in chrome for instance :

    Be sure to only use the CSS and JS files from bootstrap or host the less versions yourself. :)

    0 讨论(0)
提交回复
热议问题