PythonIreland / PythonIreland/2026.pycon.ie

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

Open
#97 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority: low
Dominant language
HTML
Stars
1
Forks
0
Avg merge
10m
Merged PRs (30d)
1

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the CSP definitions in netlify.toml and static/_headers, then locate how the inline Typekit loader is served. Determine how a nonce or hash can be applied without weakening the existing policy, and verify that the resulting headers no longer require 'unsafe-inline' for scripts or styles. Consider the optional HSTS preload separately.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
devops, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.