|
|
|
|
|
by jfager
6094 days ago
|
|
The libraries people use to "escape all inputs, etc" are providing effectively the same functionality as CSP is Maybe, but not everyone's using those libraries, and those libraries may themselves have bugs or may be used incorrectly. Defense-in-depth, and all that. "policy" is generally too brittle to describe what people need to put on pages in real-world apps Just reading through the spec I linked to, I don't see what would be particularly brittle about it. Do you have an example of a real-world use case that this would hamper? |
|
Brittleness: CSP disables <script> tags and all the script element attributes. Almost every major website in the world uses these in some form today. Both CSP and "anti-XSS" features do server-side policy about what parts of a page can have scripts, but the "anti-XSS" features are far more flexible.