Cross domain ajax fix

Required for https://bugs.launchpad.net/oq-platform/+bug/1234765. The oq-platform UI needs this in order to run calculations properly.