Skip to content

Fix security csp#12

Open
tonglynn wants to merge 23 commits intosptin2002:masterfrom
tonglynn:fix-security-csp
Open

Fix security csp#12
tonglynn wants to merge 23 commits intosptin2002:masterfrom
tonglynn:fix-security-csp

Conversation

@tonglynn
Copy link
Copy Markdown

@tonglynn tonglynn commented May 3, 2026

  1. What did I change?
    I added a strict Content-Security-Policy meta tag in the index.html header to restrict external resource loading.
  2. Why did I change it?
    Lighthouse flagged the absence of a CSP as a high-severity security vulnerability. According to OWASP and IEEE security guidelines, without CSP, the application is highly vulnerable to Cross-Site Scripting (XSS) attacks.
  3. Where is the old-vs-new code?
    Modified the tag in index.html to include:

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.

3 participants