Skip to content

Fix inline#154

Open
dotb wants to merge 6 commits into
monkeyWzr:mainfrom
dotb:fix_inline
Open

Fix inline#154
dotb wants to merge 6 commits into
monkeyWzr:mainfrom
dotb:fix_inline

Conversation

@dotb

@dotb dotb commented May 4, 2025

Copy link
Copy Markdown

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';"

dotb added 5 commits May 3, 2025 19:53
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';"
@netlify

netlify Bot commented May 4, 2025

Copy link
Copy Markdown

Deploy Preview for condescending-goldberg-725911 failed.

Name Link
🔨 Latest commit a7a8b44
🔍 Latest deploy log https://app.netlify.com/projects/condescending-goldberg-725911/deploys/68298583fcc51a0008c79eff

using referenced style instead of inline style.
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 this pull request may close these issues.

1 participant