subresource-integrity

What are the integrity and crossorigin attributes?

别说谁变了你拦得住时间么 提交于 2019-11-26 06:03:42
问题 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\"> What do the integrity and crossorigin attributes mean? How do they affect the loading of the stylesheet? 回答1: Both attributes have been