Menu

#3370 Chrome 60: Error parsing 'integrity' attribute ('undefined').

open
nobody
None
2024-10-25
2024-10-25
Anonymous
No

Originally created by: piotr-cz

Library Affected:
7.1.0

Browser & Platform:
Chromium v60.0.3112.0

Issue or Feature Request Description:

Errors in console:

(11) Error parsing 'integrity' attribute ('undefined'). The hash algorithm must be one of 'sha256', 'sha384', 'sha512', followed by a '-' character.

It seems that Old Chromium versions show errors when fetching Request with integrity: undefined.
One of such example:

https://github.com/GoogleChrome/workbox/blob/9e69c4269c35e2db9fbba4d13e4e6206c7b66d2a/packages/workbox-precaching/src/PrecacheController.ts#L212-L216

Fix is to omit the integrity attribute when it's undefined.

Errors are not present in Chromium 64+

Discussion


Log in to post a comment.