Signing JS to Defend against XSS using ModSecurity
blog.modsecurity.org
blog.modsecurity.org
We are already moving towards a world where XSS is largely a solved problem: where servers can do content-aware neutralization of all content by default. Rails 3 is already getting close. Over the long term, this is how we're probably going to deal with the XSS problem.
(Obviously, the server is always generating dynamic-SOMETHING).