HTTPS replaced with HTTP in remote URLs

Hi, I’m on 2021.3.8f1 with Addressables 1.19.19. I deploy my build on a server with SSL enabled, so I can’t have mixed content loading. For some reason even though my remote load path is set to https://…/WebGL when the content tries to load in my deployed app it loads from http://…/WebGL and I get this error:

Blocked loading mixed active content “http://…/WebGL/catalog_2022.09.12.23.07.48.hash”

Really perplexing. Is there a setting in the Addressables settings somewhere that overrides URLs and points them to http:// instead of https://?

Adding some more info: if I load my build using http:// all the URLs correctly show https:// and fail to load because of mixed content. When I load my build using https:// the URLS show http:// and fail to load because of mixed content. Super confused about what’s happening here.

Adding an actual link here in case that’s helpful in debugging https://data.virtualbrainlab.org/UnityNeuro/

I was able to fix this by adding this code

    private void Start()
    {
        Addressables.WebRequestOverride = EditWebRequestURL;
    }

    private void EditWebRequestURL(UnityWebRequest request)
    {
        if (request.url.Contains("http://"))
            request.url = request.url.Replace("http://", "https://");
        Debug.Log(request.url);
    }

But this is a weird bug in the first place, hoping someone can enlighten me about possible sources where this might be coming from!

@danb1 Hey there, this is definitely a weird bug, and https Web Requests are definitely be supported by Addressables. The workaround you’re using is totally fine in the meantime - it’s exactly what we would’ve suggested to deal with this issue in the short term. As far as fixing this goes, is there any chance you can send a bug report that reproduces this so that we can take a look at your project setup and see what lead to this bug happening? Sorry for the inconvenience, and thanks!

Sure, I can upload a bug report. Thanks