Skip to content

fix: enforce content security policy#138

Open
saurabhhhcodes wants to merge 1 commit into
JIYAJAIN30:mainfrom
saurabhhhcodes:fix/content-security-policy-132
Open

fix: enforce content security policy#138
saurabhhhcodes wants to merge 1 commit into
JIYAJAIN30:mainfrom
saurabhhhcodes:fix/content-security-policy-132

Conversation

@saurabhhhcodes
Copy link
Copy Markdown

Summary\n- Add a restrictive Content Security Policy meta tag for same-origin scripts/styles and safer defaults\n- Move button behavior out of inline onclick handlers so the CSP can block inline script execution\n- Render task rows with DOM nodes instead of innerHTML while preserving task toggle/delete behavior\n\n## Validation\n- node --check script.js\n- git diff --check\n- Served index.html locally with python3 -m http.server and verified the CSP markup is present\n\nCloses #132

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.

1 participant