Opserver icon indicating copy to clipboard operation
Opserver copied to clipboard

CSS doesn't load properly before first sign in (or when using incognito browsing)

Open gdoddsy opened this issue 7 years ago • 5 comments

When you connect for the first time, the css doesn't load for the login page.

This can also be reproduced by opening in incognito mode in chrome.

Before: before

After logging in and logging out again:

after

gdoddsy avatar Nov 10 '18 01:11 gdoddsy

How is your IIS instance configured? It sounds like even the login resources are behind auth at the IIS (not application) level.

NickCraver avatar Nov 10 '18 01:11 NickCraver

Sorry Nick, not sure what you're asking. I had assumed the login page itself worked because the controller has AlsoAllow(Roles.Anonymous). I just tried running in incognito from Visual Studio (IIS Express) and it renders the css, so I agree it probably is my IIS settings.

I just deployed the Opserver project using the Visual Studio publish command (profile is copy files to UNC path) to copy the files to a Windows 2016 server (IIS 10).

The IIS website was a brand new site I added, everything is just default settings. Authentication in Opserver is setup as Active Directory.

gdoddsy avatar Nov 10 '18 01:11 gdoddsy

In IIS there's a section for authentication settings...seems you don't have defaults there, so it's gating everything. Check which authentication options are enabled there and I can help more :)

NickCraver avatar Nov 12 '18 13:11 NickCraver

Nick - Anonymous Authentication and Forms Authentication are both enabled. That was the default that IIS setup.

image

gdoddsy avatar Nov 13 '18 01:11 gdoddsy

@gdoddsy This is working fine I have tested it on my end on firefox,chrome,edge and IE

gagandeepp avatar Dec 13 '18 09:12 gagandeepp