News for hackers. Stuff that matters.
Re:Show HN: 100% offline Shamir's Secret Sharing GUI by l1am0 on Tuesday June 16, 2020 @06:33PM (#23545120)
The problem with connect-src 'none' is that is does not allow the webassembly to load than (as this is loaded via js)

`Content Security Policy: The page’s settings blocked the loading of a resource at http://localhost:8080/wasm/wasm.wasm (“connect-src”).`

For now I only added `default-src: 'self'; form-action 'none'` to the index.html

Re:Show HN: 100% offline Shamir's Secret Sharing GUI by zaroth on Tuesday June 16, 2020 @07:19PM (#23545539)
And according to HN that only took you 1 hour and 17 minutes (but I guess "2 hours ago" could be rounded down). Way to under-promise and over-deliver!
Re:Show HN: 100% offline Shamir's Secret Sharing GUI by ahazred8ta on Wednesday June 17, 2020 @01:04AM (#23548001)
https://bs.parity.io/#-BananaSplit-shamir uses different approaches to force offline use.
Re:Show HN: 100% offline Shamir's Secret Sharing GUI by jerry1979 on Wednesday June 17, 2020 @03:45AM (#23548894)
Why not just embed the wasm directly in the webpage?
Re:Show HN: 100% offline Shamir's Secret Sharing GUI by l1am0 on Wednesday June 17, 2020 @04:00AM (#23548969)
Funny I came up with the same idea about 10min ago :D It is now directly embedded via a data uri.

This allows to set `connect-src: 'data'`