如何绕过阻止 Azure Application Insight 日志的浏览器加载项

How to bypass Browser add-ons from Blocking Azure Application Insight Logs

我正在使用 Application Insights JS SDK React Plugin 将应用程序洞察数据记录到 Azure。此数据发布可能会被某些浏览器扩展程序阻止,例如 Ad Blocker、Privacy Badger 等。在我的案例中,分析在试验时被 Privacy Badger 阻止。

我知道可以通过从浏览器中禁用特定站点的相关加载项来防止这种情况发生。只是想知道是否有一种特殊的方法可以在不要求用户禁用其附加组件的情况下从实施方面防止这种情况。

您是否考虑过构建代理以将流量转发到您自己的域,然后再将其传递给 App Insights?

https://github.com/shaneochotny/ApplicationInsights-JS-Proxy

Show how to proxy requests from the Application Insights Javascript SDK instead of sending telemetry directly to dc.services.visualstudio.com. This allows you to do things such as use your own custom domain and/or hide the Instrumentation Key.

在link中有一步一步的说明来配置这个