Fix inline#154
Open
dotb wants to merge 6 commits into
Open
Conversation
Moved the GoogleAnalytics configuration to the [params] section of the config file.
local assets instead of fetching them from 3rd party servers. This is so that a Content-Security-Policy header can be applied without breaking the theme. Unfortunatly, there is still some inline style applied to things like code blocks. The CSP header below includes hashes for the applied inline styles that remain (at least what I could find). There should be no more inline scripts. Content-Security-Policy "default-src 'self'; style-src 'self' 'unsafe-hashes' 'sha256-iBTMD2PZpkHjN97osG8s8+RuDg0ogrY93Ivvb9m42u4=' 'sha256-Isjf6GAChrKWENuFE9soGexQHUjw9Ud7fG5e4yD/CVw=' 'sha256-AY8hauWqREtJgE0L2ROc+G4D9/O01yMwVKjMnQm5cxU=' 'sha256-mW0fu5NM3URGUu99n5Tu4DWk1ylbi94n0UhRFDTcai0=' 'sha256-14RFOZyTXi065dRjpJJXLAMi28EgteRcQhZ+PK10Wcs=' 'sha256-JLEjeN9e5dGsz5475WyRaoA4eQOdNPxDIeUhclnJDCE=' 'sha256-mQyxHEuwZJqpxCw3SLmc4YOySNKXunyu2Oiz1r3/wAE=' 'sha256-OCf+kv5Asiwp++8PIevKBYSgnNLNUZvxAp4a7wMLuKA=' 'sha256-sEHsC445ekJKoClRS9rQhsayc/+5aejVnZ0frsSh49g=' 'sha256-SdhX2CkkImok/nAs9q4Sm4HpFxxtwKG3sPe1+O/gbxs=' 'sha256-PiGr5/XCDBUIftEuxoF9eQWfbgUdnct9G96aU2QzPvE=' 'sha256-w8B/fJx+20Jv6473iPMvte2ge4Jl8iNSimfk8YEXvw4=' 'sha256-TnygcBzo3pCESk6f1cPu+Q/O01I+ZFAyLS5d50xO4r4=' 'sha256-Sr+pw3R3XYyUDzkrq+yCZZTE868jwV290rs2MTFrR9I=' 'sha256-Y9v1MZrln1N8aPBY5lmpxYKwFkcp/nyBMMEnn7WFjuw='; script-src 'self'; img-src 'self'; base-uri 'self'; frame-src 'self'; frame-ancestors 'self'; form-action 'self';"
❌ Deploy Preview for condescending-goldberg-725911 failed.
|
using referenced style instead of inline style.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Made an effort to remove inline scripts and style, and move resources to local assets instead of fetching them from 3rd party servers. This is so that a Content-Security-Policy header can be applied without breaking the theme. Unfortunately, there is still some inline style applied to things like code blocks. The CSP header below includes hashes for the applied inline styles that remain (at least what I could find). There should be no more inline scripts.
Content-Security-Policy "default-src 'self'; style-src 'self' 'unsafe-hashes' 'sha256-iBTMD2PZpkHjN97osG8s8+RuDg0ogrY93Ivvb9m42u4=' 'sha256-Isjf6GAChrKWENuFE9soGexQHUjw9Ud7fG5e4yD/CVw=' 'sha256-AY8hauWqREtJgE0L2ROc+G4D9/O01yMwVKjMnQm5cxU=' 'sha256-mW0fu5NM3URGUu99n5Tu4DWk1ylbi94n0UhRFDTcai0=' 'sha256-14RFOZyTXi065dRjpJJXLAMi28EgteRcQhZ+PK10Wcs=' 'sha256-JLEjeN9e5dGsz5475WyRaoA4eQOdNPxDIeUhclnJDCE=' 'sha256-mQyxHEuwZJqpxCw3SLmc4YOySNKXunyu2Oiz1r3/wAE=' 'sha256-OCf+kv5Asiwp++8PIevKBYSgnNLNUZvxAp4a7wMLuKA=' 'sha256-sEHsC445ekJKoClRS9rQhsayc/+5aejVnZ0frsSh49g=' 'sha256-SdhX2CkkImok/nAs9q4Sm4HpFxxtwKG3sPe1+O/gbxs=' 'sha256-PiGr5/XCDBUIftEuxoF9eQWfbgUdnct9G96aU2QzPvE=' 'sha256-w8B/fJx+20Jv6473iPMvte2ge4Jl8iNSimfk8YEXvw4=' 'sha256-TnygcBzo3pCESk6f1cPu+Q/O01I+ZFAyLS5d50xO4r4=' 'sha256-Sr+pw3R3XYyUDzkrq+yCZZTE868jwV290rs2MTFrR9I=' 'sha256-Y9v1MZrln1N8aPBY5lmpxYKwFkcp/nyBMMEnn7WFjuw='; script-src 'self'; img-src 'self'; base-uri 'self'; frame-src 'self'; frame-ancestors 'self'; form-action 'self';"