More MUWM-2040

Removing the insecure_connection function from rest_dispatch