document.write("");

IIS 网站 css与js文件报错 net::ERR_ABORTED 401 (Unauthorized)

401 - Unauthorized: Access is denied due to invalid credentials. You do not have permission to view this directory or page using the credentials that you supplied.

在网站物理路径文件夹

  • 右键 → 属性 → 安全 → 编辑
  • 添加以下用户/组并给予"读取"权限:
    • IIS_IUSRS (组)
    • IUSR (用户)

刷新即可

posted @ 2025-07-24 18:26  人间春风意  阅读(7)  评论(0)    收藏  举报