ASP.NET Core

ASP.NET Core Application Insights JS With Content Security Policy

This post assumes you’ve added Application Insights to an ASP.NET Core application by following the post available at https://github.com/Microsoft/ApplicationInsights-aspnetcore/wiki/Getting-Started-with-Application-Insights-for-ASP.NET-Core. That post states that you must add @Html.Raw(JavaScriptSnippet.FullScript) to the head of the _Layout.cshtml, by doing this an inline script is added to that file _Layout.cshtml . This will cause the browser to prevent execution of that script because […]