2

Having tried all that I could, finally I resort here for some expert advice.

This can't be a complex problem for someone like you to solve. Quite sure it's an easy tackle for you!

The error pooping on the screen is as followsenter image description here

Following is the meta tag that the app has:

<meta http-equiv="Content-Security-Policy"
    content="default-src 'none'; connect-src 'self';font-src 'self'; img-src 'self' data: https:; style-src 'self' ; script-src 'self'">

Tried to find the favicon.ico, but couldn't find any.

My head is spinning now!

Looking forward for your help!

Thanks a TON!

2 Answers2

1
<meta http-equiv="Content-Security-Policy"
    content="default-src 'none'; connect-src 'self';font-src 'self'; img-src 'self' data: https:; style-src 'self' ; script-src 'self'">

Seeing this code:

  1. You have set default-src 'none' and overriding it with img-src 'self' data: https:.
  2. But the protocol in use is http.
fatalcoder524
  • 1,428
  • 1
  • 7
  • 16
1

The CSP you shown does contain the img-src, so Chrome console warn means this CSP does not acts on the page, but on page does act some another CSP.

Looks like your app does issue a default CSP somewhere and this CSP does not contain img-src directive.

So you do have 2 CSPs at the same time, in this case acts more restrictive one.

Check the presence the second <meta http-equiv="Content-Security-Policy" tag (in the HTML code) or HTTP header Content Security Policy (in the dev tool).

Alternatively you could remove your:

<meta http-equiv="Content-Security-Policy"
    content="default-src 'none'; connect-src 'self';font-src 'self'; img-src 'self' data: https:; style-src 'self' ; script-src 'self'">

and to see that the same warns still presence in the Chrome console because of second CSP.

Updated: after some researches it was found a real reason of /favicon blocking for the above case.

granty
  • 7,234
  • 1
  • 14
  • 21