Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Application Insights blocked on Firefox as CORS?

I am using the Application Insights JavaScript SDK on my website and Firefox is blocking the requests back to Azure. It is however working on Chrome.

The website is running on https and Application Insights works correctly on Chrome.

On the Console in Firefox I see the following warning: 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).

Why is Firefox identifying the request as a blocked CORS request, but Chrome doesn't?

I would like the Application Insights request to succeed from Firefox as well.

like image 272
Steve Avatar asked Sep 06 '19 11:09

Steve


People also ask

How do I enable application insights?

Select Application Insights in the left pane for your app service. Then select Enable. Create a new resource or select an existing Application Insights resource for this application. When you select OK to create a new resource, you're prompted to Apply monitoring settings.

How do I see exceptions in application insights?

Open the Application Insights Search telemetry window in Visual Studio. While debugging, select the Application Insights dropdown box. Select an exception report to show its stack trace.

How do I remove logs from application insights?

To delete Application Insights data, you've essentially 3 possible ways: Delete your Application Insight instance (but this is not what do you want to achieve I think) Use data retention policy: this deletes all data over a defined time period (default = 90 days).

What are Azure application insights?

Application Insights is an extension of Azure Monitor and provides Application Performance Monitoring (also known as “APM”) features. APM tools are useful to monitor applications from development, through test, and into production in the following ways: Proactively understand how an application is performing.


1 Answers

Did you installed an ad blocker extension (i.e. uBlock origin)? If yes, try to disable it.

like image 71
Elgolfin Avatar answered Sep 22 '22 18:09

Elgolfin