Enable tracking for https page through localhost


I’ve set up Matomo on my local server with Xampp, and it worked fine with website with http. However, when I tried with a https page, it seemed that my server doesn’t have a certificate to deal with https. So I tried to put

force_ssl = 1

in the file config_ini.php, and after that I could go to https://localhost, and can see the tracking data from my website. However, it only tracked the data from website in Google Chrome, and other browers such as Internet Explorer and Firefox didn’t send any tracking data to Matomo dashboard at all.

Anyone has the experience working with xampp at a local server and can guide me through this? I don’t know which one to configure: Matomo or Xampp.