2016-01-26 16 views
2

當與integritycrossorigin選項一起提供時,Bootstrap.css選項不起作用。完整性不起作用的Bootstrap MaxCDN

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> 

但是,刪除這些選項的工作。這是否意味着完整性無效?

回答

1

我強烈建議使用bootstrapcdn.com上列出的內容,其中包括sha256sha512

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha256-7s5uDGW3AHqw6xtJmNNtr+OBRJUlgkNJEo78P4b0yRw= sha512-nNo+yCHEyn0smMxSswnf/OnX6/KwJuZTlNZBjauKhTK0c+zT+q5JOCx0UFhXQ6rJR9jg6Es8gPuD2uZcYDLqSw==" crossorigin="anonymous"> 
+0

更新我們現在只是宣傳'sha384'。 – jdorfman