Since v18 Leia it has been possible for Kodi’s webserver to use HTTPS (see: https://github.com/xbmc/xbmc/pull/13165).
Please can you add a feature to be able to specify in the Kodi connection settings that Sonnar should connect with Kodi over HTTPS.