Yesterday I setup Azure Application Insights for my Angular frontend which also uses Auth0. To have Application Insights correctly connect my frontend with my backend, I set the option ‘enableCorsCorrelation’. This adds a header to every outgoing request with an id identifying the request.
Now, this header is also added to every request to Auth0. These requests now fail because the header is not allowed by Auth0 CORS. Has someone run into this issue? If so, is there a solution on the side of Auth0?
1 Like
Hi @thomasiodw , I ran into the same problem and managed to fix it by adding correlationHeaderExcludedDomains: ['*.auth0.com']
to the config options in javascript (new ApplicationInsights(...)
).
The documentation of correlationHeaderExcludedDomains
can be found here:
Azure Application Insights for JavaScript web apps - Azure Monitor | Microsoft Docs