Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
piotr-cz opened this issue Oct 25, 2024 · 0 comments
Open

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

piotr-cz opened this issue Oct 25, 2024 · 0 comments

Comments

@piotr-cz
Copy link
Contributor

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:

const request = new Request(url, {
integrity,
cache: cacheMode,
credentials: 'same-origin',
});

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

Errors are not present in Chromium 64+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant