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

more detail on bootstrap cdns implementation


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

qt - Passing a QObject to an Script function with QJSEngine? -

c# - Web API response xml language -