News for hackers. Stuff that matters.
Re:Learn WebAssembly by writing small programs by xigoi on Wednesday September 06, 2023 @03:41AM (#37402337)
How is allowing WebAssembly to use the network any less secure than allowing JavaScript to use the network?
Re:Learn WebAssembly by writing small programs by ReleaseCandidat on Wednesday September 06, 2023 @04:06AM (#37402476)
Don't ask me :).

At least WASM will get DOM access (and hopefully access to similar web APIs) as soon as the GC is stable and usable.

   Once GC is supported, WebAssembly code would be able to reference and access JavaScript, DOM, and general WebIDL-defined objects.
https://webassembly.org/docs/web/
Re:Learn WebAssembly by writing small programs by lxgr on Wednesday September 06, 2023 @09:44AM (#37405037)
The issue here is the same-origin principle, which rules out most low-level networking (since you could just bring your own SOP-ignoring HTTP client).

Personally I think that enforcing the SOP at all cost (and even when no cookies or other authentication headers are injected by the browser) is misguided at this point and holding back modern webapps.