"http://localhost:*" and "http://\*.localhost:\*" are considered a secure origin, so you don't need HTTPS for it.