Hook in cross-domain scripting support for mobile front-end