Updated Fontawesome *.min.css files to resolve integrity check errors #335
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
P.S. It's my first time contributing, apologies in case something is missing - I've tried to follow the established contribution guidelines :)
Description
Changes related to this issue: #299 cause integrity check errors provided below. These errors happen once you attempt to use social media icons for instance:
Failed to find a valid digest in the 'integrity' attribute for resource '<website>/fontawesome/css/solid.min.6ee9fbc38b1b14c99d05fdc597d9af749968eaf84e43050a6d059cad81a60bcc.css' with computed SHA-256 integrity 'TrP1Z4d6t0hI+yNEp2g3zJtsxCrjYjY0jF9GcV/frWc='. The resource has been blocked.
Failed to find a valid digest in the 'integrity' attribute for resource '<website>/fontawesome/css/brands.min.4bfdb43d33551d871070eb4a2ad6fd6e0d1910839cd73d763698f1db19049ddc.css' with computed SHA-256 integrity '3BDi1rr/CfGlgp184RZ2z0fUQpCkpNkdu0YJdlzdmhE='. The resource has been blocked.
Failed to find a valid digest in the 'integrity' attribute for resource '<website>/fontawesome/css/fontawesome.min.3eab8ef80d1761270f30323d1bd5d9d10a8f6a7610dbe233adba89094ed48fbd.css' with computed SHA-256 integrity 'E3K98f0smgriSX7SBZWMREv8HAM28mqcd9hcqPvnzlg='. The resource has been blocked.
The reason for these errors is that the initial changeset added 3 *.min.css files:
...but in the wrong format. Instead of being a one-liner, these files were indented and pretty-formatted which is different from the original source: https://cdnjs.com/libraries/font-awesome/6.0.0 and therefore gets a different checksum generated.
The fix for this is to add properly compressed .min.css files. Files are taken from the original CDN, version 6.0.0 which is currently the one being used by Anatole theme.
The fix has been tested both on Desktop and mobile version of the theme.
Issue Number:
Comment: no issue was created for this, I've discovered it during testing the newest version of the theme on my website.
Additional Information (Optional)
Checklist
Yes, I included all necessary artifacts, including:
Comment: this is a fix for an issue and no new functionality is added, therefore no additional artifacts are provided.
Testing Checklist
Yes, I ensured that all of the following scenarios were tested:
Notify the following users
@lxndrblz