Commit b6827a0
committed
fix: allow inline scripts in CSP for Starlight functionality
The IC asset canister's "standard" security policy sets script-src 'self'
which blocks Starlight's inline scripts for mobile menu, theme toggle,
search, and sidebar state. Replace with explicit CSP headers that include
'unsafe-inline' while keeping other security protections.1 parent 5739d84 commit b6827a0
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
| |||
0 commit comments