You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure App Service部署Angular Universal时权限报错求助

Azure App Service部署Angular Universal时权限报错求助

我遇到了个棘手的问题,想请教各位帮忙分析:之前我把不带Server Side Rendering(SSR)的Angular代码部署到Azure App Service上,全程都很顺利。但后来给项目集成了Angular Universal(也就是SSR),再次部署之后,页面直接弹出了**"You do not have permission to view this directory or page."**的报错,完全无法访问。

报错相关截图

  • 权限报错提示:
    权限报错提示
  • 部署相关状态截图:
    部署状态截图

目前我已经在项目里添加了web.config文件,部分配置内容如下:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
   <system.webServer>
      <staticContent>
         <mimeMap fileExtension=".json" mimeType="application/json" />
         <!-- 原配置内容被截断,以上为已提供的部分 -->
      </staticContent>
   </system.webServer>
</configuration>

希望有相关经验的朋友能帮我找找问题根源,看看怎么解决这个权限报错,谢谢大家!

备注:内容来源于stack exchange,提问作者Ashish Kushwaha

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.17 09:29:30