jenkinsci / last-changes-plugin

https://plugins.jenkins.io/last-changes
https://plugins.jenkins.io/last-changes/
31 stars 31 forks source link

Overcoming Jenkins Content Security Policy #72

Open timblaktu opened 4 years ago

timblaktu commented 4 years ago

How does this plugin overcome the problem caused by Jenkins' Content Security Policy (CSP), which would otherwise prevent proper viewing of your diff2html-generated static html content?

My pipeline uses diff2html to generate static html content which is archived each build, but due to the restrictive CSP, users cannot properly view the html without downloading it, and opening local version of the html. When rendered on Jenkins, the CSP header causes the