Re:How widely used are security-based HTTP response headers?
by dantillberg on Sunday August 30, 2015 @12:55PM
(#10143802)
> How about a <nojs> </nojs> pair in the primary document disabling any kind of javascript execution in the space between the tags.
But wouldn't folks still be able to inject scripts by just writing `</nojs><script>alert('hi')</script><nojs>`?
Re:How widely used are security-based HTTP response headers?
by JoshTriplett on Sunday August 30, 2015 @12:57PM
(#10143811)
CSP does exactly that; you can just ban inline scripts entirely.
But there is only so much you can do with headers, the real risks are in the documents themselves.
How about a <nojs> </nojs> pair in the primary document disabling any kind of javascript execution in the space between the tags. And those tags should only work in the primary document.