We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
crossorigin
1 parent c66dfdd commit 9e77eecCopy full SHA for 9e77eec
src/runtime/composables/useScript.ts
@@ -36,7 +36,7 @@ export function useScript<T extends Record<symbol | string, any> = Record<symbol
36
rel,
37
as: rel === 'preload' ? 'script' : undefined,
38
href: input.src,
39
- crossorigin: isCrossOrigin ? undefined : (typeof input.crossorigin !== 'undefined' ? input.crossorigin : 'anonymous'),
+ crossorigin: !isCrossOrigin ? undefined : (typeof input.crossorigin !== 'undefined' ? input.crossorigin : 'anonymous'),
40
key: `nuxt-script-${id}`,
41
tagPriority: rel === 'preload' ? 'high' : 0,
42
fetchpriority: 'low',
0 commit comments