I am trying to compile my app for windows with electron, but i’m getting some ‘Content Security Policy’ runtime errors like this:
i already got another app working in windows and mac (ionic v4) but this one, (ionic v6) i am getting these errors.
I already tried the meta tag in index.html
< meta http-equiv=“Content-Security-Policy” content=“default-src ‘self’ ‘unsafe-eval’ data: gap: https://ssl.gstatic.com; style-src ‘self’ ‘unsafe-inline’; media-src *”>
Already tried change setup.js inside electron folder:
the errors got changed while i was changing the files, but in the end, it always return to that error above …
someone could help me? what am i doing wrong?
FYI: The app works fine on Android and iOS.
The app compiles and generate the .exe successfully with no errors
The printed error is from the windows app window (once it has been compile, its possible to execute and open developer tools and see scripts errors like in browser f12)