page subresource
A file a page loads for itself, such as a script, stylesheet, image or font, as opposed to the page document.
In more detail
Each subresource is a separate request with its own caching and security checks. SameSite=Lax withholds cookies on cross-site subrequests, and Subresource Integrity verifies subresources from other servers.
Related terms
- Subresource Integrity — A browser check in which a script or stylesheet tag carries the expected hash of the file, and the browser refuses to use the file if it does not match.
- SameSite — A cookie attribute that limits whether the browser sends the cookie on requests started by other websites.
Taught in
- Content Security Policy (CSP), Trusted Types And XSS Defenses — Frontend Architecture & Web Platform
- CSRF Mitigations, SameSite Cookies And Subresource Integrity — Frontend Architecture & Web Platform