January 2015.
https://github.com/alphagov/event-store/
We have a lot of inline JavaScript on GOV.UK. Some of it can't be removed for performance reasons, but there's a lot that's in the HTML that doesn't need to be.
So we need a way of whitelisting <script>
blocks by with hash digests.
We want to use the Content-Security-Policy-Report-Only
header, but this will generate reports for every inline <script>
element because the latest browsers (Chrome 39 and Firefox 34) don't support script-src
with a sha256 hash digest,
they only support the CSP spec to level 1.
If we want to enable CSP, I think right now we need to use the 'unsafe-inline'
option which will enable all inline
JavaScript to be executed.