[root@hhlqrtest js]# cat ./util.js | openssl dgst -sha384 -binary | openssl enc -base64 -A
rfhUX/daSXdrSIHpOOPTxq222dR4unGS9FO+MsBx/DHDzaWWQwiWyqHKERHtNMnG
[root@hhlqrtest js]#
crossorigin="anonymous" integrity="sha384-[刚刚的hash值]"
例如:
<script type="text/javascript" src="<c:url value='/js/PageJs/Home/login.js'/>" integrity="sha384-HI67irbqe+kwOQ8FJ1RH64pq172I2Y1wJN8BauJqymn8/ZAql5aMssg9fUe72fqE" crossorigin="anonymous" ></script>
上一篇:meta大全
下一篇:没有了