Trouble with projects compile with Emscripten on OS X with Chrome

I’m currently trying to use emscripten to be able to distribute my project over the web.
However, when I open the HTML file in Chrome, it just gets stuck on the following screen:

In the Javascript console, I see the following errors:
XMLHttpRequest cannot load file:///Users/satre/Developer/Projects/Art/GenerativeVideoMesh/bin/GenerativeVideoMesh.html.mem. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource. (anonymous function) @ GenerativeVideoMesh.html:227

XMLHttpRequest cannot load file:///Users/satre/Developer/Projects/Art/GenerativeVideoMesh/bin/GenerativeVideoMesh.data. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.

I do not think it is a problem with my specific project, as I get the same error when I use emscripten with the 3D Primitives example from the tutorial.

So after some research, I realized that I need to launch the project in the browser explicitly using the emrun command. I was simply opening the html file with Chrome, which was causing the error.

I was serving the files via a basic web server but was still running into this issue.

I solved it by providing Module['memoryInitializerPrefixURL'] = 'http://localhost:3000/'.

For reference, here is the error I was getting in the developer console.

XMLHttpRequest cannot load . Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.

ffmpeg-all-codecs.js:83 Uncaught could not load memory initializer ffmpeg-all-codecs.js.mem

See https://github.com/bgrins/videoconverter.js/pull/55#issuecomment-262889902