ASP.NET Membership: CSS being blocked by Deny users, page doesn't render correctly?

后端 未结 6 1848
太阳男子
太阳男子 2021-01-12 07:04

I have a page that functions correctly but when i issue a deny user for the whole site it redirects me to the logon page which seems to work BUT the css is not working. Henc

6条回答
  •  独厮守ぢ
    2021-01-12 07:45

    Use fiddler to see exactly what is happening to that resource? May shed light on the mystery. It should 403 if it is unauthorized. May be 404ing? If it's not in a virtual directory you could just write:

    
    

    (directory traversing is flimsy)

    Update - now more info

    Nice fiddler use ;) Anyway, since it is 302ing (temporarily redirecting) your css files to require validation too the problem is your forms authentication.

    You are probably running into the runAllManagedModuleForAllRequest="true" problem. Read that post for info.

    Or set the all access to the Content folder to allow access. You're almost there but it would need to be:

                 
                    
                      
                        
                      
                    
      
    

提交回复
热议问题