问题
On Android devices I need to open a URL using google chrome regardless the browser where the url is clicked (in my case facebook in-app browser). To do so I created small proxy with a Javascript redirect using the chrome URI schema:
window.location = "googlechrome://navigate?url=google.com";
I am testing this on two different devices, on the first one (ASUS X018D - Android 8.1) it works perfectly. On the second one (Samsung Galaxy S9 plus - Android 9) I get the error Not allowed to load local resource: googlechrome://navigate?url=google.com (I can see this inspecting the remote device with chrome). The URL I am using is not a local one so I don't understand why this error is triggered and how to solve it.
来源:https://stackoverflow.com/questions/57912296/not-allowed-to-load-local-resource-trying-opening-googlechrome-navigateurl-xx