Skip to content

HAMUR_E0026: Hash pages with strict-dynamic need build.sri

Hash pages with strict-dynamic need build.sri. Error HAMUR_E0026 belongs to hamur, config, environment and command line (0001 – 0999).

Message

text
HAMUR_E0026 server.csp.strictDynamic on hash pages needs build.sri; set build.sri or server.csp.strictDynamic: false

Cause

server.csp.strictDynamic is on for pages that use script hashes, and build.sri is false. A hash page needs the integrity hashes of its scripts.

Fix

Remove build.sri: false, or set server.csp.strictDynamic: false.