News for hackers. Stuff that matters.
Re:Using WebAssembly threads from C, C++ and Rust by atom3 on Wednesday July 21, 2021 @10:06AM (#27906480)
I've not try that but wouldn't the html meta tag work as well?

Something like

  <head>
    <meta http-equiv="Cross-Origin-Embedder-Policy" content="require-corp" />
    <meta http-equiv="Cross-Origin-Opener-Policy" content="same-origin" />
    ...
  </head>
Re:Using WebAssembly threads from C, C++ and Rust by Jasper_ on Wednesday July 21, 2021 @11:01AM (#27907222)
No, http-equiv only supports a hard-coded whitelist of headers. https://html.spec.whatwg.org/multipage/semantics.html#pragma...
Re:Using WebAssembly threads from C, C++ and Rust by infogulch on Wednesday July 21, 2021 @02:16PM (#27909945)
It seems the answer to the question "wouldn't this work" is "no", but I'd ask "shouldn't this work?" what's the problem with this being configured in a meta tag?
Re:Using WebAssembly threads from C, C++ and Rust by flohofwoe on Wednesday July 21, 2021 @10:09AM (#27906505)
Apparently not, but I haven't tried myself:

https://stackoverflow.com/questions/67259043/can-coop-coep-h...