TIP

Use integrity / crossrigin to lock JS and CSS files.

Styles in HTML code<link />Label or<script >Add integrity verification code to the tag to ensure the integrity of the loaded resource. If it is tampered with, the browser will not load the resource.

According to this specification, you can add integrity verification code to the website to prevent the resource file from being modified. It also plays a protective role for people who do not understand the code to download your page.

Reference sub resource integrity:https://www.w3.org/TR/SRI/, supports all mainstream browsers.

reg