# Azure Application Insights request header clashes with Auth0

**URL:** <https://community.auth0.com/t/azure-application-insights-request-header-clashes-with-auth0/47242>\
**Category:** Get Help\
**Tags:** azure, general-question\
**Created:** [July 31, 2020, 6:20am UTC](https://community.auth0.com/t/azure-application-insights-request-header-clashes-with-auth0/47242 "2020-07-31T06:20:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomasiodw](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/thomasiodw/32/22892_2.png) [@thomasiodw](https://community.auth0.com/u/thomasiodw)\
**Post date:** [July 31, 2020, 6:20am UTC](https://community.auth0.com/t/azure-application-insights-request-header-clashes-with-auth0/47242/1 "2020-07-31T06:20:32Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![francoishill11](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/francoishill11/32/34787_2.png) [@francoishill11](https://community.auth0.com/u/francoishill11)\
**Post date:** [January 31, 2022, 4:28am UTC](https://community.auth0.com/t/azure-application-insights-request-header-clashes-with-auth0/47242/2 "2022-01-31T04:28:40Z")

</div>

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](https://docs.microsoft.com/en-us/azure/azure-monitor/app/javascript#enable-correlation)
