A new sample is available to illustrate how to deal with the CORS problem when trying to connect to Language Weaver from JavaScript. It includes a minimal "translation portal", and a tiny REST server (implemented in Python), which acts as a proxy between the client UI and the Language Weaver API. It's available in the Code Library.