What is Content Security Policy? — UK Software Development Guide
Direct Answer
Content Security Policy (CSP) is a browser security mechanism delivered via HTTP response headers that helps prevent Cross-Site Scripting (XSS) and data injection attacks. CSP allows a web server to specify which sources of content (scripts, styles, images, fonts) are permitted to be loaded by the browser, blocking any content from unauthorised sources.
Csp in the UK
CSP is an important UK Cyber Essentials and OWASP alignment control. OWASP Top 10 includes XSS (Cross-Site Scripting) as a critical web vulnerability — CSP is the primary defence. Cyber Essentials Secure Configuration: CSP headers are a secure configuration control for web applications. UK GDPR: XSS attacks can exfiltrate personal data from the browser — CSP reduces this risk. Clickmasters configures CSP headers for all web applications as standard, starting with a strict policy and relaxing only where genuinely required. Common challenge: strict CSP often breaks third-party analytics and marketing scripts — the solution is nonces or hashes rather than blanket unsafe-inline permissions.
Related Glossary Terms
Cicd
CI/CD explained for UK software developers. CI/CD (Continuous Integration / Continuous Delivery, or Continuous Deployment) is a software development practice that a...
Continuous-delivery
Continuous Delivery explained. Continuous Delivery (CD) is a software development practice where code changes are automatically built, tested...
Continuous-deployment
Continuous Deployment explained. Continuous Deployment (CD) is a software development practice where every code change that passes the automate...
Continuous-integration
Continuous Integration explained for UK software developers. Continuous Integration (CI) is a software development practice where developers frequently merge code changes into a sha...
Cyber Essentials
Cyber Essentials explained for UK software developers and business owners. Cyber Essentials is a UK government-backed cybersecurity certification scheme developed by NCSC (National Cyber Security... UK context, examples, and related services.
Api-key
API Key explained. An API key is a unique identifier used to authenticate a client making API calls. It is typically a long rando...
Get Expert Advice on Csp
Speak with our UK software development experts about Csp. Free consultation, transparent pricing, no obligation.