Skip to content

Preset hardening#3

Open
aubes wants to merge 1 commit into
mainfrom
fix/preset
Open

Preset hardening#3
aubes wants to merge 1 commit into
mainfrom
fix/preset

Conversation

@aubes
Copy link
Copy Markdown
Owner

@aubes aubes commented May 6, 2026

  • strict preset: added 'unsafe-inline' and https: as CSP Level 1/2 fallbacks alongside 'strict-dynamic' (modern browsers ignore them when 'strict-dynamic' is set), and added form-action 'self'.
  • permissive preset: added 'unsafe-eval' to script-src (most legacy apps that need unsafe-inline also need eval), connect-src 'self' https: for XHR/fetch/WebSocket calls, and form-action 'self'.

@aubes aubes added the enhancement New feature or request label May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant