Support for https://localhost on iOS

Without having tried, I believe that swapping the request for a new request pointing to file:/// would be no different than having a file:/// directly in the original page, which is not allowed from a remote site.