Skip to content

Fix/light dark mode viewport#7

Merged
BandiAkarsh merged 2 commits intomainfrom
fix/light-dark-mode-viewport
Mar 2, 2026
Merged

Fix/light dark mode viewport#7
BandiAkarsh merged 2 commits intomainfrom
fix/light-dark-mode-viewport

Conversation

@BandiAkarsh
Copy link
Copy Markdown
Owner

No description provided.

- Add light/dark mode toggle button to dashboard sidebar
- Add sun icon for light mode, moon icon for dark mode
- Add settings button to sidebar
- Fix editor viewport: use 100dvh for dynamic viewport height
- Add CSS to ensure main takes full viewport height

The theme toggle now appears in the dashboard sidebar with sun/moon icons
Add comprehensive security headers to resolve Shannon assessment findings:
- HSTS: Strict-Transport-Security with max-age=31536000; includeSubDomains; preload
- CSP: Content-Security-Policy with SvelteKit-compatible directives
- CORS: Restrict Access-Control-Allow-Origin from wildcard to locanote.pages.dev
- security.txt: Add vulnerability disclosure at /.well-known/security.txt

Fixes:
- CWE-319: Missing HSTS (SSL stripping prevention)
- CWE-693: Missing CSP (XSS mitigation)
- CWE-942: CORS wildcard policy (information disclosure)
- CWE-1059: Missing security.txt (vulnerability reporting)

Additional:
- Add verify-security-fixes.sh script for post-deployment validation
- Update CLOUDFLARE_DEPLOYMENT.md with security configuration docs
- Add SECURITY_FIXES_APPLIED.md with complete remediation details

Risk Level: LOW-MEDIUM → LOW

Refs: Shannon Security Assessment 2026-03-02
@BandiAkarsh BandiAkarsh merged commit 018bf9f into main Mar 2, 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.

1 participant