edx/XBlock — pull request #199 by terman (2014-03-31 00:53:49+00:00)
Title: allow .html files as a local resource

The javascript courseware I'm trying to embed uses js libraries incompatible with edX, so I'd like to create an iframe in the xblock to hold my code. I've written some simple js glue to allow the code inside the iframe to communicate with the xblock handlers. In order to serve up the source of the iframe, it's necessary to allow .html files to be served as a local resource, along with css, js, json, etc.

iframe embedding seems like the most convenient and safest strategy to allow two different code bases to coexist both now and in the future. This how, eg, Hangouts apps are embedded in to Hangout.