File tree 1 file changed +3
-0
lines changed
packages/plugin-legacy/src
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -360,6 +360,7 @@ function viteLegacyPlugin(options: Options = {}): Plugin[] {
360
360
tag : 'script' ,
361
361
attrs : {
362
362
type : 'module' ,
363
+ crossorigin : true ,
363
364
src : `${ config . base } ${ modernPolyfillFilename } `
364
365
}
365
366
} )
@@ -390,6 +391,7 @@ function viteLegacyPlugin(options: Options = {}): Plugin[] {
390
391
tag : 'script' ,
391
392
attrs : {
392
393
nomodule : true ,
394
+ crossorigin : true ,
393
395
id : legacyPolyfillId ,
394
396
src : `${ config . base } ${ legacyPolyfillFilename } `
395
397
} ,
@@ -412,6 +414,7 @@ function viteLegacyPlugin(options: Options = {}): Plugin[] {
412
414
tag : 'script' ,
413
415
attrs : {
414
416
nomodule : true ,
417
+ crossorigin : true ,
415
418
// we set the entry path on the element as an attribute so that the
416
419
// script content will stay consistent - which allows using a constant
417
420
// hash value for CSP.
You can’t perform that action at this time.
0 commit comments