ASP.NET directory access with Role based Security
I have an ASP.Net portal like application with multiple roles. I have placed the subpages of that role in its own directory adding a web config with an authorization allowing only that role. I have css and javascript in the root directory that can not get access inside the protected role folders. How can I allow these folders css/js to have access to all roles. Sorry if th开发者_如何学Pythonis is easy question I have searched but I am rather new to ASP.NET
For simplicity's sake I would allow public access to your images, js, and css. Even if you set specific permissions anyone who is able to access your subpages will be able to access your content if those subpages are public-facing.
If you are hell-bent on locking down your app use the location tag in web.config to point to the folder whose permissions you want to open up to specific roles.
精彩评论