mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
do not add crossOrigin attribute on same origin scripts
This commit is contained in:
parent
82b56224ba
commit
329ac9812e
3
plugins/c9.login.client/bootstrap.js
vendored
3
plugins/c9.login.client/bootstrap.js
vendored
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user