CSP is a computer security standard introduced in 2004.It helps protect websites from attacks by specifying allowed content sources.CSP prevents execution of malicious scripts, addressing vulnerabilities like XSS and MITM attacks.It also disallows dynamic code injection methods like eval().