Why does my Pixel Javascript access http://localhost when in an embedded web view on Android
3

We have a meta tracking pixel on a client website, embedded and tracking correctly using google tag manager. We also show some of the content from the site embedded in a web view in their Android app. We've noticed tha the Webview is throwing an error as the Pixel javascript attempts to access http://localhost. Android, by default since Android 9 disallows cleartext http connections unless explicitly enabled. We don't wish to enable this as it could be insecure. I have two questions 1. Anyone know why it accesses http://localhost ? 2. Why does it do it over an http not https? 3. could this be caused by a misconfiguration?

It is in the javascript retrieved from https://connect.facebook.net/signals/config/?v=2.9.167&r=stable&domain= &hme=&ex_m=

I did try and change the version and some time back, this code didn't reference localhost.

Is there some way I can disable this?

Dermot
Ditanyakan sekitar 3 minggu yang lalu