Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230982

Compile error: violates the following Content Security Policy directive

$
0
0

Hi There

I am getting a strange error on ionic serve: Failed to compile
Refused to load the image ‘http://localhost:8101/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.

The last command I ran before this error occurred was:

$ ionic cordova resources android

Could this have caused the issue?

This is a new ionic4 cordova project.
No changes have been made to the default index.html or angular.json generated by the CLI

Any ideas on how to resolve this issue?


Viewing all articles
Browse latest Browse all 230982

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>