Jenkins URL change problem

jenkins http url http://xxx.xxx.xxx.xxx:8080/ this is what is configured in configure system Jenkins URL section:
Also there is HTTPS environment port and server also is reachable with https://XXX.XXX.XXX.XXX:8443/
Problem is that with this configuration themes plugin does not work because of referrer policy: same origin of browser. so, themes plugin takes http URL of Jenkins

If you change URL HTTP to HTTPS , everything seems to works expect cloud agent pods… i mean after this change. k8s agents are stacked and not starting pods…