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

Missing integrity attribute in link preload tags #47

Open
angelo983 opened this issue Feb 21, 2025 · 0 comments
Open

Missing integrity attribute in link preload tags #47

angelo983 opened this issue Feb 21, 2025 · 0 comments

Comments

@angelo983
Copy link

angelo983 commented Feb 21, 2025

In Magento 2.4.7 I found that scripts are loaded with integrity and crossorigin attributes.
Missing attributes in link preload tags lead to integrity mismatch and consequently loss of preload functionality.

Example
A preload for 'requirejs-config.js' is found, but is not used due to an integrity mismatch.

<script type="text/javascript" integrity="sha256-[...]" crossorigin="anonymous" src="requirejs/require.js"></script>
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