为什么firefox需要凭据来加载图像?

Stu*_*ser 0 asp.net security firefox configuration image

我在虚拟目录上运行一个网站.

该网站的网址是 http://localhost/virtalDirectory/pages.aspx

我有一个图像从以下目录heirarchy加载到页面上:

parent directory
..images
....my image
..myPage.aspx

我的img标签是 <img src="images/imageName.gif" alt="some text"/>

在IE8中加载时,图像正确加载,但在Firefox3中加载时,系统会提示我登录localhost,它似乎是一个Windows文件浏览器登录.

我在images目录中有一个web.config:
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>

<img src="~/images/imageName.gif" alt="some text" runat="server"/> to allow asp to resolve the address of the image at run-time. Which does not resolve the problem.

http://localhost/virtalDirectory/pages.aspx到图像目录web.config.哪个不能解决问题.

Gal*_*boy 7

你检查过文件本身的权限了吗?最有可能的是,文件权限是针对您和所有人设置的,IE会传递凭据,但Firefox不会.