Encountering an issue with the error message "Cannot GET login/" appearing on the page body of my latest Angular 8 app. Despite attempting various solutions found on forums, I have been unable to resolve this error. Any suggestions or advice would be greatly appreciated.
It is important to note that there are no compilation errors when running ng serve
or ng build --prod
. The following is the error displayed in the Chrome console. It should be noted that this error only occurs when accessing the app via the server URL, not localhost.
Refused to load the image 'serverUrL/favicon.ico' because it violates the following Content Security Policy directive: "default-src 'none'". Please take into account that 'img-src' was not explicitly set, therefore 'default-src' is being used as a fallback.