Check specific ajax actions before enforcing HTTPS closes #4324