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显示,除非登录。如果我们试图直接访问图像需要我们登录页面。 有没有人知道发生了什么?