Intermediate Cybersecurity & Cryptography
Q71 / 100

What is the purpose of Subresource Integrity (SRI) in web security?

Correct! Well done.

Incorrect.

The correct answer is B) Allowing browsers to verify that fetched resources (scripts, stylesheets) from third-party CDNs have not been tampered with, by comparing a cryptographic hash

B

Correct Answer

Allowing browsers to verify that fetched resources (scripts, stylesheets) from third-party CDNs have not been tampered with, by comparing a cryptographic hash

Explanation

SRI uses an integrity attribute containing a base64-encoded hash (e.g., sha384-...). The browser computes the hash of the fetched file and refuses to execute it if it doesn't match, protecting against compromised CDNs.

Progress
71/100