Skip to content

Commit

Permalink
fixup! Removing line about missing CSP header (unclear, redundant)
Browse files Browse the repository at this point in the history
  • Loading branch information
timmc committed Aug 29, 2024
1 parent a3a3773 commit b042db5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion files/en-us/web/http/csp/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ These attacks are used for everything from data theft, to site defacement, to ma

CSP is designed to be fully backward compatible (except CSP version 2 where there are some explicitly-mentioned inconsistencies in backward compatibility; more details [here](https://www.w3.org/TR/CSP2/) section 1.1).
Browsers that don't support it still work with servers that implement it, and vice versa. Browsers that don't support CSP ignore it, functioning as usual; they will only apply the protections of the standard [same-origin policy](/en-US/docs/Web/Security/Same-origin_policy) without the further restrictions that the CSP would add.
The same is true for when a site doesn't offer a CSP header.

To enable CSP, you need to configure your web server to return the {{HTTPHeader("Content-Security-Policy")}} HTTP header.
(Sometimes you may see mentions of the `X-Content-Security-Policy` header, but that's an older version and you don't need to specify it anymore.)
Expand Down

0 comments on commit b042db5

Please sign in to comment.