-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Address high-priority content security policy concerns #227
Milestone
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As a user of an extension, I would like to connect to the internet so that I can get content.
Crowd.Bible's people tried to make a paranext extension, and it required security access beyond our current CSP's abilities. They modified the CSP's to fit their needs as described here: https://github.com/etenlab/docs/blob/dev/docs/DevTeam/paranext-extension.md#known-problems-and-ways-to-tackle-them
We need to evaluate modifying our content security policy in renderer's
index.ejs
and in webview'sweb-view.service.ts
to meet the needs of extension developers in a secure way:data:
uris for supplying images and such. Are these secure?rc-dock
's built-in class.dock-panel-drag-size-b-r
, which has a data url onbackground-image
.https:
to media sources and/orconnect-src
script-src
a way to run wasm likewasm-unsafe-eval
orpapi-extension:
- some thoughts https://github.com/WebAssembly/content-security-policy/blob/main/proposals/CSP.mdpapi-extension:
? That would mean any extension can load any script. Is this ok?delete XmlHttpRequest
on webviewswindow.top
is readonly - prevents us from isolating webviews #176 option 1 basically means that will not be possible, but at least anything would still have to go through our CSPindex.ejs
andweb-view.service.ts
script
likea
andlink
allow-same-origin
prevents us from getting in trouble withblob:
s which do execute on same originClosely related to #89
Depends on the design decision from #176
The text was updated successfully, but these errors were encountered: