I have seen this on a newly-generated ASP.NET Core 9 app and in an app I upgraded to .NET 9 from .NET 8.
This is in Views/Shared/_Layout.cshtml
:
<script type="importmap">
{
"imports": {
"axios": "/js/axios.min.js",
"axios-retry": "/js/axios-retry.js",
"is-retry-allowed": "/js/is-retry-allowed.js"
}
}
</script>
and it gets stripped out. When I look at the devtools/sources tab in Chrome, it’s there for the .NET 8 app, but not for the .NET 9 app.
How do I stop .NET 9 from doing that?