Glimpse / Glimpse

The open source diagnostics platform for the web
http://getGlimpse.com
Apache License 2.0
2.32k stars 418 forks source link

Missing Glimpse ICON #690

Closed n8nt closed 10 years ago

n8nt commented 10 years ago

I installed Glimpse 1.52 for MVC 4 but after I start it up I cannot see the glimpse icon in the lower right of the page. Is there another way to get to the glimpse page instead of using that icon?

Steps to re-produce: Install glimpse for mvc 4 from the nuget package manager.

Start up my application.

Turn Glimpse ON

GO back to application page - but cannot find the glimpse ICON anywhere

I tried this using Chrome version 32.0.1700.41 I tried Firefox and IE 11

none work.

I do use boostrap css framework and I do have a nav tag with the following attributes so that there is always a menu fixed at the bottom of the screen:

nav class='navbar navbar-default navbar-fixed-bottom

If I remove that nav then I do see the icon while running locally via the debugger. But if I publish to the web then I don't see it even if I remove the nav that is fixed-bottom.

It would be very helpful to be able to launch the glimpse dashboard via some other mechanism. Is that possible?

Thanks

avanderhoorn commented 10 years ago

Thanks for the bug report. From what you have described, Glimpse is definitely running when you are in development, its just that bootstrap is popping up over the top of it. The reason this is different when you publish it, it because glimpse is designed to only to be accessible from localhost. To adjust this you can remove the policy that enforces this and put a different security measure in place (e.g. only allow admins to access Glimpse).

n8nt commented 10 years ago

Makes sense. If not designed to (normally) run on published site, should the glimpse dll's and references be removed before publishing since they wouldn't be used anyway? Thanks, Bob

avanderhoorn commented 10 years ago

Its not that its not designed to run on production, its more that we want to make things secure by default and that it should be an explicit thing that you control when you want to run Glimpse in production. To disable that policy, you can use the instructions in the Glimpse.axd. Also when you installed glimpse originally we included an extra file in your project which gives some examples on how you might want to lock things down.