AIBug
April 6, 2020, 7:42am
1
I am getting these errors when I try to compile my app:
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”).
Content Security Policy: The page’s settings blocked the loading of a resource at http://localhost:8100/favicon.ico (“default-src”).
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”).
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”).
It used to compile fine earlier today and I am not sure what I did to cause these problems. Nor can I find “default-src”.
I’m not sure what code to give you to look at
Sorry for the hard question.
Thanks for any help that you can give.
jjdev
April 10, 2020, 2:29am
2
the same thing has happened to me on the last few new projects I’ve started
are you running a cordova or capacitor app?
I am seeing a few posts that say the cordova-whitelist plugin was why its not happening with cordova but capacitor is not working around it
try posting your results of
$ ionic info
and the contents of package.json
AIBug
April 10, 2020, 8:47pm
3
Thank you so much for replying! It took awhile, but i eventually got my app working!
Here is what solved it for me!
I used the web developer tool in my fire fox browser!
When I ran the app, it told me where the app stopped running and why.
My terminal never showed any problems, but Firefox’s tool showed me exactly where I needed to look. In the end, I had a misspelled page name.
Hope this helps someone in the future!