File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/fastify-react/plugin Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,15 @@ export async function closeBundle() {
23
23
let imagePreloads = '\n'
24
24
for ( let image of images ) {
25
25
image = image . slice ( this . root . length + 1 )
26
- imagePreloads += ` <link rel="preload" as="image" href="${ this . resolvedConfig . base } ${ image } ">\n`
26
+ imagePreloads += ` <link rel="preload" as="image" crossorigin href="${ this . resolvedConfig . base } ${ image } ">\n`
27
27
}
28
28
let cssPreloads = ''
29
29
for ( const css of cssImports ) {
30
- cssPreloads += ` <link rel="preload" as="style" href="${ this . resolvedConfig . base } ${ css } ">\n`
30
+ cssPreloads += ` <link rel="preload" as="style" crossorigin href="${ this . resolvedConfig . base } ${ css } ">\n`
31
31
}
32
32
let jsPreloads = ''
33
33
for ( const js of jsImports ) {
34
- jsPreloads += ` <link rel="modulepreload" href="${ this . resolvedConfig . base } ${ js } ">\n`
34
+ jsPreloads += ` <link rel="modulepreload" crossorigin href="${ this . resolvedConfig . base } ${ js } ">\n`
35
35
}
36
36
const pageHtml = await appendHead (
37
37
this . indexHtml ,
You can’t perform that action at this time.
0 commit comments