D05

Warning

Data and assets

D05 — An asset from another origin with no integrity hash

A stylesheet, font or script loaded from another origin is code that origin can change after you read it. A meta.integrity hash is how the browser checks it has not.

The fix

add its sha384-… hash to meta.integrity (the CDN usually publishes it). Google Fonts is exempt: its stylesheet differs per browser.

Why this rule exists

Warning. A font, stylesheet or script in meta.fonts, meta.stylesheets or meta.scripts from another origin, with no hash in meta.integrity.

lints may lower it:

"lints": { "D05": "off" } // wf-allow(D05)