| ▲ | william-evans an hour ago | |||||||||||||||||||||||||
I’m building one of these Podda [1], though pointed at households/small communities rather than companies, so ordinary people can keep the apps they’ve made by talking to Claude or ChatGPT and share them with their friends. Passing code only the things it’s allowed to use works on the server because you start from zero, so our generated code holds no credentials at all and its only way out is a proxy that allows exact origins and methods. You can’t really do that in the browser. CSP only restricts which origins the code can reach, not the method or the path, so approving one destination means anything the code can read can go anywhere there. The difficult part is that if we're writing an honest consent prompt to our users then it has to say that, and it sounds a lot worse than "allow network access?". This is hard especially when our target users are non/less-technical. There are other versions of the same problem everywhere, like revoking an origin not actually taking effect until a refresh. | ||||||||||||||||||||||||||
| ▲ | masterj an hour ago | parent [-] | |||||||||||||||||||||||||
For client side there is https://hardenedjs.org/ And Cloudflare OS does some fancy things with iframes + capnweb iirc | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||