afonsof / jenkins-material-theme

Beautify your Jenkins with the Material Design theme!
http://afonsof.com/jenkins-material-theme
MIT License
1.72k stars 355 forks source link

css render fails with 403 forbidden #100

Open p00j4 opened 7 years ago

p00j4 commented 7 years ago

jenkins version:2.46 following the doc I have uploaded the css file to my s3 bucket and linked it in jenkins but it fails always, the same happens with even the afonsof.com/jen list also Failed to load resource: the server responded with a status of 403 (Forbidden)

screen shot 2017-02-20 at 6 35 53 pm

as per this: https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Content+Security+Policy I get the understanding on reason, but can you please tell what CSP have tried these but didn't work

System.setProperty("hudson.model.DirectoryBrowserSupport.CSP","style-src 'unsafe-inline';'allow-scripts';") 

System.setProperty("hudson.model.DirectoryBrowserSupport.CSP","'unsafe-inline';'allow-scripts';") 

Please help with right settings if issue is because of this or any pointers to debug & fix this