4 ms·
Any idea if there is a catchable event to detect an integrity check failure?
by lsaferite 11y ago
Any idea if there is a catchable event to detect an integrity check failure?
- bugmen0t 11y ago"On a failed integrity check, an error event is thrown. Developers wishing to provide a canonical fallback resource (e.g., a resource not served from a CDN, perhaps from a secondary, trusted, but slower source) can catch this error event and provide an appropriate handler to replace the failed resource with a different one." Source: https://w3c.github.io/webappsec/specs/subresourceintegrity/#handling-integrity-violations https://w3c.github.io/webappsec/specs/subresourceintegrity/#...
- cbsmith 11y agoJust have JavaScript code check for variables that would show up in the load, no?