简体   繁体   English

如何绕过浏览器插件阻止 Azure Application Insight 日志

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

I'm using Application Insights JS SDK React Plugin to log application insights data to Azure.我正在使用 Application Insights JS SDK React Plugin将应用程序洞察数据记录到 Azure。 This data publishing could get blocked by some browser extensions such as Ad Blocker, Privacy Badger, etc. In my case analytics got blocked by Privacy Badger while experimenting.此数据发布可能会被某些浏览器扩展程序(例如 Ad Blocker、Privacy Badger 等)阻止。在我的案例中,分析在试验时被 Privacy Badger 阻止。

在此处输入图像描述

I know it can be prevented by disabling relevant add-ons for the particular site from the browser.我知道可以通过从浏览器禁用特定站点的相关加载项来防止它。 Just wondering is there a particular way to prevent this from implementation side without asking users to disable their add-ons.只是想知道是否有一种特殊的方法可以在不要求用户禁用其附加组件的情况下从实施方面防止这种情况发生。

Have you considered building a proxy to forward traffic to your own domain before then passing it off to App Insights?您是否考虑过构建代理以将流量转发到您自己的域,然后再将其传递给 App Insights?

https://github.com/shaneochotny/ApplicationInsights-JS-Proxyhttps://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.展示如何代理来自 Application Insights Javascript SDK 的请求,而不是将遥测数据直接发送到 dc.services.visualstudio.com。 This allows you to do things such as use your own custom domain and/or hide the Instrumentation Key.这允许您执行诸如使用您自己的自定义域和/或隐藏 Instrumentation Key 之类的事情。

There are step by step instructions in that link to configure this该链接中有分步说明来配置它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 nextjs 应用程序中添加 LinkedIn Insight 标签 - How to add LinkedIn Insight tag in nextjs application 从React应用程序向Google Drive API发送POST请求时,如何绕过CORS错误? - How to bypass CORS error when sending POST request to Google Drive API from react application? 如何从 ReactJS 应用程序调用 Azure AD 安全 Azure 功能 - How to call Azure AD Secured Azure Functions from ReactJS Application 我如何从日志文件而不是应用程序日志输出日志 - How do i output the logs from log file instead of application log 如何在反应应用程序中从 clientJS 获取浏览器指纹? - How to get browser fingerprint from clientJS in react application? 从浏览器启动 Teams 应用程序 - Launch Teams Application from Browser 如何从应用程序访问私有 azure blob 存储文件? - How to access private azure blob storage file from application? Cors 阻止来自我的单页应用程序的请求 - Cors blocking requests from my Single Page Application 从 Azure Blob 存储中获取 Blob 时如何在浏览器中显示文件缩略图 - How to display a file thumbnail in browser when fetching blobs from Azure Blob Storage 来自加载在 ElectronJS 容器中的 React 应用程序的控制台日志 - Console logs from a react application loaded in an ElectronJS container
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM