Check out example codes for "Extend Report jenkins css missing". It will help you in understanding the concepts better.

Code Example 1

System.clearProperty("hudson.model.DirectoryBrowserSupport.CSP");

System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "sandbox allow-scripts; default-src 'self'; script-src * 'unsafe-eval'; img-src *; style-src * 'unsafe-inline'; font-src *");

Learn ReactJs, React Native from akashmittal.com