For wsl the solution is to add wsl.localhost to allowed hosts.
But when opening a poject I prefer to select one directly from \wsl.localhost\Ubuntu\home\Username\websites and then on the info window where - simply click "Allow".