Skip to content

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

@matrixise

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions