Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
aegarbutt
· 8y ago · 0 comments
In Electron, all file:/// URIs share an origin. Using `script-src: 'self'` isn't much of a boundary.
Comments
[–]
f2n
8y ago
So let's say I'm able to run HTML in Signal Desktop. How do I include an arbitrary script without getting the user to download the script first?
[–]
aegarbutt
OP
8y ago
If I remember correctly, on Windows you can reference file://<IP-Address>/path/to/file
Thanks SMB / UNC Paths.
[–]
aegarbutt
OP
8y ago
For reference:
https://github.com/electron/electron/issues/5151