File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
packages/astro/src/runtime/server/render Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' astro ' : patch
3
+ ---
4
+
5
+ Fixes wrong contents in CSP meta tag.
Original file line number Diff line number Diff line change 34
34
build :
35
35
name : " Build: ${{ matrix.os }}"
36
36
runs-on : ${{ matrix.os }}
37
- timeout-minutes : 3
37
+ timeout-minutes : 5
38
38
strategy :
39
39
matrix :
40
40
OS : [ubuntu-latest, windows-latest]
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export function renderCspContent(result: SSRResult): string {
36
36
}
37
37
38
38
const strictDynamic = result . isStrictDynamic ? ` strict-dynamic` : '' ;
39
- const scriptSrc = `style -src ${ styleResources } ${ Array . from ( finalStyleHashes ) . join ( ' ' ) } ${ strictDynamic } ;` ;
40
- const styleSrc = `script -src ${ scriptResources } ${ Array . from ( finalScriptHashes ) . join ( ' ' ) } ;` ;
39
+ const scriptSrc = `script -src ${ scriptResources } ${ Array . from ( finalScriptHashes ) . join ( ' ' ) } ${ strictDynamic } ;` ;
40
+ const styleSrc = `style -src ${ styleResources } ${ Array . from ( finalStyleHashes ) . join ( ' ' ) } ;` ;
41
41
return `${ directives } ${ scriptSrc } ${ styleSrc } ` ;
42
42
}
You can’t perform that action at this time.
0 commit comments