How do I disable all the /views/* url’s in my web app?
Url’s like this:
http://razor.servicestack.net/views/rockstars
http://razor.servicestack.net/views/angularjs
When accessing my app with the views/ url I kind of bypass the login. So users can see the layout of my page without logging in.
ok should be resolved with this commit:
https://github.com/ServiceStack/ServiceStack/commit/52a3f72976184a5d32698d2d5f85a86888a45211
You can achieve the same behavior with:
Plugins.Add(new RazorFormat {
Deny = { path => path.StartsWithIgnoreCase("/views") }
});