remove roboto font (due to layout shift while loading)
This commit is contained in:
parent
bf5b2a96b5
commit
22a052c137
2 changed files with 3 additions and 7 deletions
|
@ -33,10 +33,8 @@ export default createHandler(({ nonce }) => {
|
|||
const policies = {
|
||||
default: base,
|
||||
connect: `${base} ws://localhost:*`,
|
||||
script: `${base}`,
|
||||
style: `'self' data: https://fonts.googleapis.com 'unsafe-inline'`,
|
||||
// style: `${base} data: https://fonts.googleapis.com`,
|
||||
font: `${base} https://*.gstatic.com`,
|
||||
style: `'self' data: 'unsafe-inline'`,
|
||||
// style: `${base} data: `,
|
||||
} as const;
|
||||
|
||||
event.response.headers.append('Content-Security-Policy', Object.entries(policies).map(([p, v]) => `${p}-src ${v}`).join('; '))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue