You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.
The error is:
Failed to load resource: the server responded with a status of 404 (Not Found) localhost/:1 Refused to load the image 'http://localhost:3002/favicon.ico' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback.
In searching for and trying out solutions, I came across one recommending your module so I installed it, set it up, but am still getting that error. I've also tried many other suggestions from across the nets.
Am pretty sure this is just "MY" issue, being a noob and all, can you please advise?
My server.js followed by index.html:
The text was updated successfully, but these errors were encountered:
Hi! I think the reason you get this error is the order of middlewares. Favicon is served by express.static but express-csp-header is placed after it. Try to place express-csp-header just before it.
Hello and thanks for the response. I have moved express-csp-header as you suggested but am still getting the same message:
I doubt the issue is with your code, have backed it out and will tackle PWA later, and yes, I'm still getting the same error and have exhausted ideas gleaned from careful Googling.
Hello wise coder,
The error is:
Failed to load resource: the server responded with a status of 404 (Not Found) localhost/:1 Refused to load the image 'http://localhost:3002/favicon.ico' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback.
In searching for and trying out solutions, I came across one recommending your module so I installed it, set it up, but am still getting that error. I've also tried many other suggestions from across the nets.
Am pretty sure this is just "MY" issue, being a noob and all, can you please advise?
My server.js followed by index.html:
The text was updated successfully, but these errors were encountered: