electron-userland / electron-userland/electron-webpack

Setting Up Content-Security-Policy

Open
#159 6 comments 11 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
902
Forks
168
PR merge metrics
No merged PRs in 30d

Description

I get this warning in the console every time i compile my electron-app,
"Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security Policy set or a policy with "unsafe-eval" enabled. This exposes users of this app to unnecessary security risks."

I've tried to set-up Content Security by inserting the meta-tag into the header. But webpack generates the static index.html at run-time. So i'm not sure where or how to add content security policy.

Any help will be appreciated

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.