jenkinsci / material-theme-plugin

A Material theme plugin for Jenkins.
https://plugins.jenkins.io/material-theme/
MIT License
14 stars 16 forks source link

Material theme is not working properly when using load balancer #77

Open Subashgs95 opened 1 year ago

Subashgs95 commented 1 year ago

Hi Team,

We have installed material theme plugin in our jenkins instances. When we use the direct hostname like snt900.org.com, the color theme is working fine. But when we use to access with the F5 name like Production.org.com the color theme is not working.

Could someone please help me with this issue?

Thanks, Subash Mail id:- subashsundaraj@gmail.com

timbrown5 commented 1 year ago

I don't think the plugin will respond differently behind a LoadBalancer. It's worth checking your CSP settings on your LoadBalancer to check that it is allowing Jenkins to run self-hosted CSS. ~

We use something like: "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' data:; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' data: https://fonts.googleapis.com; object-src 'none'"