Skip to content

Commit

Permalink
fix(preload): add crossorigin attribute in CSS link tags (#17930)
Browse files Browse the repository at this point in the history
  • Loading branch information
fallemand committed Sep 2, 2024
1 parent 413c86a commit 15871c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/importAnalysisBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ function preload(
link.rel = isCss ? 'stylesheet' : scriptRel
if (!isCss) {
link.as = 'script'
link.crossOrigin = ''
}
link.crossOrigin = ''
link.href = dep
if (cspNonce) {
link.setAttribute('nonce', cspNonce)
Expand Down

0 comments on commit 15871c7

Please sign in to comment.