Per*_*cek 5 asp.net iis es6-modules
我开始在ASP.NET MVC应用程序中使用ES6 javascript模块,但是IIS express拒绝在脚本标签中提供type 模块的 javascript文件。我收到401未经授权。
<script src="~/Scripts/index.js" type="module"></script>
Run Code Online (Sandbox Code Playgroud)
当我type="module"从script标签中删除时,它可以正常工作。
是否包含请求过滤器?您能帮我设置对吗?