resilient.is/docs

Plugin: basic-integrity

This plugin sets statically configured Subresource Integrity (SRI) hashes on requests performed by configured wrapped transport plugins.

This allows plugins that know how to handle it (or that use underlying browser APIs that automatically handle SRI, like fetch()) to verify integrity of retrieved content before returning it as a response.

IMPORTANT NOTE: this plugin, by itself, does not verify the integrity of fetched resources; it merely sets the integrity data on the requests. It’s up to the wrapped plugin to actually use that data to verify integrity (like the integrity-check plugin) or rely on browser APIs like fetch() to handle this automatically.

Configuration

The basic-integrity plugin supports the following configuration options: