Skip to content

Security: CSP allows 'unsafe-inline' for scripts and styles #97

Description

@matrixise

Problem

The CSP includes script-src 'self' 'unsafe-inline' use.typekit.net ... and style-src 'self' 'unsafe-inline' .... Not an SEO ranking factor, but 'unsafe-inline' weakens XSS protection. (The rest of the header set is excellent: HSTS, nosniff, X-Frame-Options DENY, Referrer-Policy, Permissions-Policy.)

Fix

Move to a nonce/hash-based CSP for the inline Typekit loader; optionally add preload to HSTS.

Files: netlify.toml / static/_headers
Found by /seo audit (technical), 2026-05-29.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions