Loading javascript via proxy

Hi Guys

Hopefully someone can point me in the right direction. I have Nginx Proxy Manager setup and connecting fine to my HA. I have a couple of HACS mods enabled for lovelace cards etc that use custom JS. Now connecting to HA via the local ip the the styling works as below

However when i connect via my proxy with my domain it fails to load the JS file as seen below

Any ideas would be warmly welcomed

Thanks