Skip to content

Commit

Permalink
feat(wallet): add compatibility with protected font (#1740)
Browse files Browse the repository at this point in the history
* feat: test protected font

* feat: test protected font

* feat: add misssing link

* feat: update link

* fix: add missing properties to link

* fix: use testing version of the webassets to test font loading

* fix: use crossorigin `anonymous` and use staging webassets server

* fix: use production webassets

* fix: formatting in html

* fix: format

---------

Co-authored-by: evavirseda <[email protected]>
Co-authored-by: JCNoguera <[email protected]>
Co-authored-by: JCNoguera <[email protected]>
  • Loading branch information
4 people authored Aug 22, 2024
1 parent 441e1b4 commit 33dee04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/wallet/src/manifest/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
}
],
"content_security_policy": {
"extension_pages": "default-src 'none'; object-src 'none'; connect-src *; font-src 'self'; img-src * data:; media-src *; script-src 'self'; style-src 'self' 'unsafe-inline'; base-uri 'self'; form-action 'none'; frame-ancestors 'none';"
"extension_pages": "default-src 'none'; object-src 'none'; connect-src *; font-src 'self' data: https://webassets.iota.org; img-src * data:; media-src *; script-src 'self'; style-src 'self' 'unsafe-inline' https://webassets.iota.org; base-uri 'self'; form-action 'none'; frame-ancestors 'none';"
}
}
5 changes: 5 additions & 0 deletions apps/wallet/src/ui/index.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
<meta charset="utf-8" />
<title><%= htmlWebpackPlugin.options.title %></title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link
rel="stylesheet"
href="https://webassets.iota.org/api/protected?face=alliance-no2"
crossorigin="anonymous"
/>
</head>
<body class="app-initializing">
<div id="root"></div>
Expand Down

0 comments on commit 33dee04

Please sign in to comment.