Cannot use a leading ../ to exit above the top directory

前端 未结 10 874
小蘑菇
小蘑菇 2020-11-30 08:37

I have a asp.net web site with it we have admin area with login page for admin only and all site is allowed for all - i need to ask how to define the right security configur

10条回答
  •  抹茶落季
    2020-11-30 09:02

    You have an image or a favicon link of the style ="../" somewhere, that if the "../" were valid, would go beyond the top of the site, like this:

    Image:

    http://example.com/Images/test.jpg
    

    Page

    http://example.com/Pages/test.aspx
    

    Valid on that page: ../Images/test.jpg
    Would throw an error: ../../Images/test.jpg

提交回复
热议问题