Skip to content

fix: tighten Content Security Policy (CSP)#61

Merged
ianphil merged 2 commits intoipdelete:mainfrom
spboyer:fix/56-tighten-csp
Feb 13, 2026
Merged

fix: tighten Content Security Policy (CSP)#61
ianphil merged 2 commits intoipdelete:mainfrom
spboyer:fix/56-tighten-csp

Conversation

@spboyer
Copy link
Copy Markdown
Contributor

@spboyer spboyer commented Feb 13, 2026

Tighten the Content Security Policy in src/index.html:

  • Restrict default-src to 'self' only
  • Remove 'unsafe-inline' from script-src (not needed with webpack bundles)
  • Keep 'unsafe-eval' in script-src (required by Monaco Editor)
  • Add explicit font-src, img-src, connect-src, worker-src directives
  • Keep 'unsafe-inline' in style-src (required by style-loader)

Fixes #56

- Restrict default-src to 'self' only
- Remove 'unsafe-inline' from script-src (not needed with webpack bundles)
- Keep 'unsafe-eval' in script-src (required by Monaco Editor)
- Add explicit font-src, img-src, connect-src, worker-src directives
- Keep 'unsafe-inline' in style-src (required by style-loader)

Fixes ipdelete#56
@ianphil ianphil merged commit ffe8191 into ipdelete:main Feb 13, 2026
1 check passed
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.

Tighten Content Security Policy (CSP)

2 participants