Fixed an issue of the browser 401 asking for credentials.

Needs further testing.