gotwarlost / istanbul-middleware

Connect middleware for server side code coverage using istanbul
Other
179 stars 96 forks source link

add a header to ensure chrome44+ will display all fillbar correctly #24

Open RoCat opened 9 years ago

RoCat commented 9 years ago

chrome44+ and latest chromium builds add a security check to inline scripting that prevent in that project to display all fillbars with a warning in the console when using the route "/coverage".

I add a header Content-Security-Policy to allow unsafe-inline, seems to solve that problem and all fillbars are now correctly displayed.

the bug seems not to appear on downloaded html report, only online reports (localhost:XXX/coverage"