Onlyoffice Connector app not working

I am trying to integrate nextcloud with onlyoffice,however it keeps giving me a mixed content error. I have the server set as https in the config, however the console shows it trying to load http, so if i ignore mixed content errors, it then complains about the content policy not allowing integration. I’ll upload screenshots later, when I get home. Why is it trying to load http even though https is set? Is there any way to fix this? If anyone is wondering, if i go to the url with the onlyoffice document server it says the document server is running.