Add allowLocalHttp support.