I have been playing with bare bones WebAssembly programs and the basic .html file provided by emscripten is is pretty neat, however, it would not work on a restrictive CSP like the one I am using here since it contains a lot of inline code, inline styles and even inline svg, which my CSP forbids. So I make a quick edit to the shell.html and split it into its parts to remove the inline stuff. The result seems to be working.

You may download the modified shell.html and its dependencies here.