html - What are the integrity and crossorigin attribute? -
bootstrapcdn changed links. looks 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">
what integrity
, crossorigin
attributes mean? how affect loading of stylesheet?
both attributes have been added bootstrap cdn implement subresource integrity.
subresource integrity defines mechanism user agents may verify fetched resource has been delivered without unexpected manipulation reference
integrity attribute allow browser check file source ensure code never loaded if source has been manipulated.
crossorigin attribute present when request loaded using 'cors' requirement of sri checking when not loaded 'same-origin'. more info on crossorigin
Comments
Post a Comment