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

Failed to find a valid digest - bootstrap@5.3.2/dist/js/bootstrap.min.js #331

Closed
pschleiter opened this issue Oct 11, 2023 · 2 comments · Fixed by #332
Closed

Failed to find a valid digest - bootstrap@5.3.2/dist/js/bootstrap.min.js #331

pschleiter opened this issue Oct 11, 2023 · 2 comments · Fixed by #332

Comments

@pschleiter
Copy link

Hello,

with version 2.3.1 I get the following failure in the browser, when I include {{ bootstrap.load_js() }} using Bootstrap5.

Failed to find a valid digest in the 'integrity' attribute for resource 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.min.js' with computed SHA-384 integrity 'BBtl+eGJRgqQAUMxJ7pMwbEyER4l1g+O15P+16Ep7Q9Q+zqX6gSbd85u4mG4QzX+'. The resource has been blocked.

On the getbootstrap.com (https://getbootstrap.com/docs/5.3/getting-started/introduction/) specifies the following tags for 5.3.2

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.min.js" integrity="sha384-BBtl+eGJRgqQAUMxJ7pMwbEyER4l1g+O15P+16Ep7Q9Q+zqX6gSbd85u4mG4QzX+" crossorigin="anonymous"></script>

I guess the was a mix up in the release with bootstrap.bundle.min.js and bootstrap.min.js.

@greyli
Copy link
Member

greyli commented Oct 12, 2023

Fixed in #332 and released 2.3.2. Thanks for the quick report!

@PanderMusubi Please be careful when updating the integrity value.

@PanderMusubi
Copy link
Collaborator

Yes, sorry for that. I have made an extra not of it in #300

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

Successfully merging a pull request may close this issue.

3 participants