0
我們有一個不顯示圖像的Web應用程序上顯示出來,CSS,除非用戶已登錄。 我們正在使用窗體身份驗證位置路徑設置不登錄頁面
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="2880" cookieless="UseCookies" />
</authentication>
現在我們在web.config文件中專門使用這個配置下的部分來授予匿名用戶訪問「content」文件夾的權限。
<location path="Content">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
但仍然沒有圖像,沒有css顯示,除非登錄。如果我們試圖直接訪問圖像需要我們登錄頁面。 有沒有人知道發生了什麼?