Siguria

Subresource Integrity (SRI)

Në shqip: Integriteti i burimeve të jashtme

ShpjegimiSQ

Kur ngarkon një skript nga një CDN, atributi integrity me hash-in e tij bën që shfletuesi ta refuzojë po CDN-ja hakohet dhe skripti ndryshon. Mbrojtje e thjeshtë kundër sulmeve në zinxhirin e furnizimit.

EnglishEN

When you load a script from a CDN, the integrity attribute with its hash makes the browser refuse it if the CDN is hacked and the script changes. Simple protection against supply-chain attacks.

Si ta mendosh

Si një vulë e garancisë që tregon nëse dikush e ka hapur pakon.

Lexoje në anglisht

Like a tamper seal showing whether someone has opened the package.

Shembull kodihtml

<script src="https://cdn.example.com/lib.js"
  integrity="sha384-oqVu..." crossorigin="anonymous"></script>

Terma të lidhur