diff options
author | 高灰 <www@zeroplace.cn> | 2020-09-22 23:30:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-22 17:30:18 +0200 |
commit | 15ae361485056b236a9484a185238f992806e1ff (patch) | |
tree | 1826adb493e9276b1c49289e6a1e9ee4239f0c34 /src/manipulation.js | |
parent | df6858df2ed3fc5c424591a5e09b900eb4ce0417 (diff) | |
download | jquery-15ae361485056b236a9484a185238f992806e1ff.tar.gz jquery-15ae361485056b236a9484a185238f992806e1ff.zip |
Manipulation: Respect script crossorigin attribute in DOM manipulation
Fixes gh-4542
Closes gh-4563
Co-authored-by: Michał Gołębiowski-Owczarek <m.goleb@gmail.com>
Diffstat (limited to 'src/manipulation.js')
-rw-r--r-- | src/manipulation.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/manipulation.js b/src/manipulation.js index 8eca61add..7838e2293 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -157,7 +157,8 @@ function domManip( collection, args, callback, ignored ) { // Optional AJAX dependency, but won't run scripts if not present if ( jQuery._evalUrl && !node.noModule ) { jQuery._evalUrl( node.src, { - nonce: node.nonce || node.getAttribute( "nonce" ) + nonce: node.nonce || node.getAttribute( "nonce" ), + crossOrigin: node.crossOrigin }, doc ); } } else { |