Tried many tips, but the only working for me is:
Open about:config
Search network.stricttransportsecurity.preloadlist
Set it to false (double click on it)
It makes a security issue, but in a dedicated profile aimed to test local sites, it does the job!