remove roboto font (due to layout shift while loading)

This commit is contained in:
Chris Kruining 2024-11-21 20:32:29 +01:00
parent bf5b2a96b5
commit 22a052c137
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
2 changed files with 3 additions and 7 deletions

View file

@ -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('; '))