Skip to content

Commit

Permalink
issue: #1231; update csp + preload fonts warnings;
Browse files Browse the repository at this point in the history
  • Loading branch information
migbash committed Apr 25, 2023
1 parent cc6a085 commit c760364
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,18 @@
[ℹ] Website Fonts
-->
<link
as="style"
rel="preconnect"
href="https://fonts.googleapis.com"
/>
<link
as="style"
rel="preconnect"
href="https://fonts.gstatic.com"
crossorigin
/>
<link
as="style"
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
rel="stylesheet"
/>
Expand Down
10 changes: 8 additions & 2 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ const config = {
'style-src': [
'self',
'unsafe-inline',
'https://fonts.googleapis.com'
// [ℹ] google/firebase;
'https://fonts.googleapis.com',
'https://fonts.gstatic.com'
],

// NOTE: specifies the URLs that
Expand Down Expand Up @@ -172,6 +174,9 @@ const config = {
'https://web-writer.eu.smartlook.cloud',
'https://assets-proxy.smartlook.cloud',
'https://*.smartlook.cloud',
// [ℹ] sentry
'https://o1009217.ingest.sentry.io/',
'https://*.sentry.io/',
// [ℹ] yandex;
'https://mc.yandex.ru',
],
Expand All @@ -186,7 +191,8 @@ const config = {
],
// [ℹ] ???
'worker-src': [
'self'
'self',
'blob:'
],
// [ℹ] ???
'manifest-src': [
Expand Down

0 comments on commit c760364

Please sign in to comment.