Images won't redirect to https

Hi, I am using Ubuntu 20 with Cyberpanel 2, My posts redirect fine (HTTP to HTTPS) but this is not the case with Images, (.cs, .js) any help regarding this.