Q . favicon.ico not found error

Brad Johnson. asked, Jun 19 ' 2015

Mixed Content: The page at 'https://www.example.com/login.php' was loaded over HTTPS, but requested an insecure favicon 'http://www.example.com/favicon.ico'. This content should also be served over HTTPS.

  • favicon
  • not-found

1 Answers

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:

<intercept-url pattern="/favicon.ico" access="ROLE_ANONYMOUS" />


Add the below html tag in the header

<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">

Leave a Ansewer