Bootstrapcdn 最近更改了他们的链接.现在看起来像这样:
Bootstrapcdn recently changed their links. It now looks like this:
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha256-MfvZlkHCEqatNoGiOXveE8FIwMzZg4W85qfrfIFBfYc= sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ=="
crossorigin="anonymous">
integrity 和 crossorigin 属性是什么意思?它们如何影响样式表的加载?
What do the integrity and crossorigin attributes mean? How do they affect the loading of the stylesheet?
Bootstrap CDN 中添加了这两个属性来实现 子资源完整性.
Both attributes have been added to Bootstrap CDN to implement Subresource Integrity.
子资源完整性定义了一种机制,用户代理可以通过该机制验证获取的资源是否已在没有意外操作的情况下交付 参考
Subresource Integrity defines a mechanism by which user agents may verify that a fetched resource has been delivered without unexpected manipulation Reference
完整性属性是允许浏览器检查文件源,以确保如果源被操纵,则永远不会加载代码.
Integrity attribute is to allow the browser to check the file source to ensure that the code is never loaded if the source has been manipulated.
Crossorigin 属性 在使用CORS"加载请求时出现,现在这是在未从同源"加载时进行 SRI 检查的要求.更多关于crossorigin的信息
Crossorigin attribute is present when a request is loaded using 'CORS' which is now a requirement of SRI checking when not loaded from the 'same-origin'. More info on crossorigin
更多关于 Bootstrap CDN 实施的细节
这篇关于什么是完整性和跨域属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
Angular 2:在本地 .json 文件中找不到文件Angular 2: file not found on local .json file(Angular 2:在本地 .json 文件中找不到文件)
使用模式 Angular 2 进行输入验证Input validation with pattern Angular 2(使用模式 Angular 2 进行输入验证)
如何在角度2中动态更改css类名How to change the css class name dynamically in angular 2(如何在角度2中动态更改css类名)
如何在 Ionic 中使用 CORS 编写 Angular 2 服务?How do I write an Angular 2 service with CORS in Ionic?(如何在 Ionic 中使用 CORS 编写 Angular 2 服务?)
如何删除输入类型中的默认颜色?How to remove default color in input type?(如何删除输入类型中的默认颜色?)
如何将点击事件添加到打字稿中动态添加的html元How to add click event to dynamically added html element in typescript(如何将点击事件添加到打字稿中动态添加的html元素)