Why does 'Open With Browser' option default to http protocol?

I’m using Docker Desktop on Windows, and have a few SPA containers accessible via https://localhost:PORT_NUMBER. For some reason the Open With Browser option pictured below always tries to open http://localhost:PORT_NUMBER, which fails, and means I have to manually change the url it to https, to get to the page.

image

Is there a way to configure this, so that the https version of the page is being opened by default? At first I thought, maybe it’s because of port mapping, but I am only mapping 443, and not 80. For the time being I resorted to just using VSCode Docker extension, since it actually opens an https page instead of http by default.