Tagged articles
Content Security Policy
10 articles · Page 1 of 1
The article details debugging a Baidu Map GL white screen caused by CSP blocking worker fetch of data: URIs for image atlases and eval usage in SDK scripts; fixing required adding data: to connect-src and unsafe-eval to script-src in the nginx CSP header.
Baidu Map GLCSPContent Security Policy
0 likes · 16 min read

This article explains the fundamentals of Cross‑Site Scripting attacks, illustrates reflected, stored, and DOM‑based variants with concrete code examples, and presents a four‑step defense strategy—including input validation, output encoding, Content Security Policy, and WAF—to protect web applications.
Content Security PolicyWAFWeb Security
0 likes · 9 min read

Cross‑Site Scripting (XSS) is a common web security vulnerability where malicious scripts are injected into pages, and this article explains typical PHP XSS scenarios, demonstrates code examples, and outlines effective mitigation techniques such as htmlspecialchars(), HTML Purifier, proper headers, secure cookies, CSP, and best practices.
Content Security PolicyPHPWeb Security
0 likes · 5 min read

This article walks through two real-world security flaws—a high‑risk SQL injection and a medium‑risk stored XSS—showing how the CodeBuddy AI assistant can automatically detect, analyze, and remediate them with prepared statements and CSP enhancements, while explaining the underlying concepts and best practices.
AI code reviewCodeBuddyContent Security Policy
0 likes · 13 min read

This article explains the principles, attack vectors, and mitigation techniques for three common web security threats—Cross‑Site Scripting (XSS), Cross‑Site Request Forgery (CSRF), and Clickjacking—detailing how malicious scripts are injected, how forged requests exploit user credentials, and how defensive headers, token strategies, and frame restrictions can protect applications.
CSRFContent Security PolicySameSite
0 likes · 14 min read

This article explains what clickjacking (UI redressing) is, demonstrates how attackers craft hidden iframe layers to hijack user clicks, and outlines both client‑side and server‑side mitigation strategies such as frame‑busting scripts, X‑Frame‑Options, and Content‑Security‑Policy directives.
Content Security PolicyUI redressingWeb Security
0 likes · 10 min read

The guide details how a SaaS platform can transition to full‑site HTTPS by explaining the TLS handshake, inventorying static assets, domains and third‑party services, using protocol‑relative URLs, configuring redirects and CSP, testing securely, and addressing common migration challenges such as legacy references and external dependencies.
CDNContent Security PolicyHTTPS
0 likes · 13 min read

This comprehensive tutorial explains what XSS is, describes the three main attack types, illustrates how malicious scripts are injected and executed, and provides practical strategies—including encoding, validation, and Content Security Policy—to defend web applications against cross‑site scripting vulnerabilities.
Content Security PolicyCross-site scriptingXSS
0 likes · 28 min read

This guide explains the most important HTTP response security headers—such as X‑Frame‑Options, X‑Content‑Type‑Options, X‑XSS‑Protection, Content‑Security‑Policy, Strict‑Transport‑Security, and CORS headers—detailing their purpose, possible values, and how to configure them in Apache to harden web applications.
ApacheCORSContent Security Policy
0 likes · 6 min read

Content Security Policy (CSP) is a browser‑level defense that defines a whitelist of trusted sources for scripts, styles, images, and other resources, preventing malicious code injection such as XSS by blocking any content not explicitly allowed.
CSPContent Security PolicyWeb Security
0 likes · 4 min read
