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

Add support for integrity attribute in script/link #140

Open
qligier opened this issue Mar 25, 2024 · 0 comments
Open

Add support for integrity attribute in script/link #140

qligier opened this issue Mar 25, 2024 · 0 comments

Comments

@qligier
Copy link

qligier commented Mar 25, 2024

When the integrity attribute is used on script/link elements, it isn't updated after optimization of the JS/CSS content and prevents the browser from evaluating the resource.

E.g.

<link rel="stylesheet"
         href="/css/style.min.css"
         integrity="sha256-wa1ES7wqg7gaI5M1FpSm/2c4k9EifIgNRSlhJzJxlgw=" crossorigin="anonymous">

Resulting in:

Failed to find a valid digest in the 'integrity' attribute for resource '/css/style.min.css'
with computed SHA-256 integrity 'PuEGdAutN3Hy2YTBDNjBfmmg8LRELm2YW2VO/GqF6yI='.
The resource has been blocked.

It would be nice to have support for this attribute. Thank you!

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