diff --git a/dev/core/src/com/google/gwt/core/ext/linker/impl/installScriptDirect.js b/dev/core/src/com/google/gwt/core/ext/linker/impl/installScriptDirect.js index 725505e0bf..2df43d2615 100644 --- a/dev/core/src/com/google/gwt/core/ext/linker/impl/installScriptDirect.js +++ b/dev/core/src/com/google/gwt/core/ext/linker/impl/installScriptDirect.js @@ -9,7 +9,9 @@ function installScript(filename) { var docbody = doc.body; var script = doc.createElement('script'); script.language='javascript'; - script.crossOrigin=''; + if (location.host) { + script.crossOrigin=''; + } script.src = code; if (__MODULE_FUNC__.__errFn) { script.onerror = function() {