When I type this:

System.getProperty("hudson.model.DirectoryBrowserSupport.CSP")


I get this answer:


Result: default-src * data:


...still not changing anything!


Am Mittwoch, 17. Februar 2016 11:00:41 UTC+1 schrieb Lino Capobianco:
>
> Hi all,
>
> I'm trying to set a link (<a href ...>) to load a html site (created for 
> any build). When I click the link, I get this exception on the Google 
> Chrome Console:
>
>
> <https://lh3.googleusercontent.com/-GozXnukBwYw/VsRCylU89II/AAAAAAAAABw/_zRdlLUTEQM/s1600/jenkerror.PNG>
> I tried to following things:
>
> Typing (in Jenkins script console):
>
> System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "default-src * 
> 'unsafe-inline';")
>
>
>
> And I also tried changing it directly in the java.xml
>
>
> like:
>
>
> <arguments>
>
> -Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle 
>
> "-Dhudson.model.DirectoryBrowserSupport.CSP=cript-src * 'unsafe-inline'" 
>
> -jar "%BASE%\jenkins.war" --httpPort=8080
>
> </arguments>
>   
>
> Both solutions are not working. Am I using this in the wrong way? 
>
> I want to load an HTML site on a new tab. This HTML-Site has JS included and 
> should be working. The site is as you can see in the workspace folder. 
>
> What do I have to type in the script console to make the script sites working?
>
>
> Thank you for your help!
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/9b4b6670-6b9f-42e2-9307-5b5b9f63606d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to