Here is the solution :-
The issue is, when the browser cache is empty and a user comes in, here is what happens:
The user requests URL "/". This URL is cached.
The browser makes a requests to "/favicon.ico". This URL becomes the new URL where to redirect to upon authentication.
The user posts the login form and is redirected to "/favicon.ico".
To fix this, you need to set "/favicon.ico" as being a non-secured resources: