unsafe-eval #42
Unanswered
Muhammad-Adam
asked this question in
Q&A
Replies: 1 comment
-
The message you can see in Console is just a warning for development mode. Once you package the application for production it will not appear. If you wish to disable that warning, use this before creating // src/main/appWindow.ts
process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have noticed that the

unsafe-eval
warning everytime.If i were to include the
meta
tag in theindex.html
file<meta http-equiv="Content-Security-Policy" content="script-src 'self';">
The warning will disappear but there will be an error about refusing to evaluate string as javascript.
How do i go about removing the error?
Beta Was this translation helpful? Give feedback.
All reactions