0 votes
1 view
in Web Technology by (22.4k points)

Bootstrapcdn recently changed their links. It now looks like this:

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" 


integrity="sha256-MfvZlkHCEqatNoGiOXveE8FIwMzZg4W85qfrfIFBfYc= sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" 


What do the integrity and crossorigin attributes mean? How do they affect the loading of the stylesheet?

1 Answer

0 votes
by (40.3k points)

Both attributes have been added to Bootstrap CDN to implement Subresource Integrity.

For more details on Subresource Integrity refer to this:


Subresource Integrity is used to define a mechanism by which user agents may verify that a fetched resource has been delivered without unexpected manipulation 

Refer to this https://bugs.chromium.org/p/chromium/issues/detail?id=355467

An integrity attribute is used to allow the browser to check the file source to ensure that the code is never loaded if the source has been manipulated.

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'.

For more info on cross-origin refer to this:


For more detail on Bootstrap CDNs implementation refer to this:


Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !