mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
set crossOrigin attribute on cdn scripts (+6425)
This commit is contained in:
parent
e45d34e881
commit
898c34de0e
4
node_modules/architect-build/build_support/mini_require.js
generated
vendored
4
node_modules/architect-build/build_support/mini_require.js
generated
vendored
@ -211,6 +211,10 @@ var loadScript = function(path, id, callback) {
|
||||
s.src = path;
|
||||
s.charset = 'utf-8';
|
||||
s.async = true;
|
||||
|
||||
if (path.lastIndexOf(require.MODULE_LOAD_URL, 0) == 0)
|
||||
s.crossOrigin = true;
|
||||
|
||||
head.appendChild(s);
|
||||
|
||||
s.onload = s.onreadystatechange = function(_, isAbort) {
|
||||
|
||||
1
plugins/c9.login.client/bootstrap.js
vendored
1
plugins/c9.login.client/bootstrap.js
vendored
@ -93,6 +93,7 @@ function loadScript(path, token, callback) {
|
||||
|
||||
var and = path.indexOf("?") >= 0 ? "&" : "?";
|
||||
s.src = path + (token ? and + "access_token=" + encodeURIComponent(token) : "");
|
||||
s.crossOrigin = true;
|
||||
head.appendChild(s);
|
||||
|
||||
s.onload = s.onreadystatechange = function(_, isAbort) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user