Ste*_*eve 7 javascript azure-application-insights
我在我的网站上使用Application Insights JavaScript SDK,而 Firefox 阻止了对 Azure 的请求。然而,它正在 Chrome 上工作。
该网站在 https 上运行,Application Insights 在 Chrome 上正常运行。
在 Firefox 的控制台上,我看到以下警告:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://dc.services.visualstudio.com/v2/track. (Reason: CORS request did not succeed).
为什么 Firefox 将请求识别为被阻止的 CORS 请求,而 Chrome 没有?
我也希望 Firefox 的 Application Insights 请求成功。
有几点需要注意:
您使用的是哪个版本的 AI。尝试将您的软件包升级到最新版本:
您可以继续尝试将该站点添加到异常中,看看它是否有效,这也可能是因为 Firefox 异常:
其他参考: https: //github.com/Microsoft/ApplicationInsights-node.js/issues/133
希望能帮助到你。