diff --git a/plugins/c9.login.client/bootstrap.js b/plugins/c9.login.client/bootstrap.js index 1405cd89..6cf144b5 100644 --- a/plugins/c9.login.client/bootstrap.js +++ b/plugins/c9.login.client/bootstrap.js @@ -93,7 +93,8 @@ function loadScript(path, token, callback) { var and = path.indexOf("?") >= 0 ? "&" : "?"; s.src = path + (token ? and + "access_token=" + encodeURIComponent(token) : ""); - s.crossOrigin = true; + if (s.src.indexOf("://" + window.location.host) == -1) + s.crossOrigin = true; head.appendChild(s); s.onload = s.onreadystatechange = function(_, isAbort) {