Issue name

Content security policy: malformed syntax

Typical severity

Information

Issue description

Content Security Policy (CSP) is a security mechanism designed to mitigate cross-site scripting attacks by disabling dangerous behaviours such as untrusted JavaScript execution. Websites can specify their security policy in a response header or meta tag, enabling fine-grained control over dangerous features like scripts and stylesheets.

Issue remediation

Using malformed syntax in your policy causes the browser to ignore the directive. Ensure that you use the correct syntax in your policy.

References

Vulnerability classifications

Web intro