Skip to content

Commit

Permalink
🔒️ Update CSP config
Browse files Browse the repository at this point in the history
  • Loading branch information
nwingt committed Dec 18, 2024
1 parent ad0b001 commit ce9d399
Show file tree
Hide file tree
Showing 3 changed files with 468 additions and 7 deletions.
11 changes: 11 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default defineNuxtConfig({
"@wagmi/vue/nuxt",
"@vueuse/nuxt",
"@nuxtjs/i18n",
"nuxt-security",
],
i18n: {
vueI18n: "./i18n/config.ts",
Expand All @@ -27,4 +28,14 @@ export default defineNuxtConfig({
{ code: "zh-Hant", name: "繁體中文" },
],
},
security: {
headers: {
contentSecurityPolicy: {
"frame-ancestors": ["https://secure.walletconnect.org"],
"script-src": [
"https://deploy-preview-6--book3-app.netlify.app/.netlify/scripts/cdp",
],
},
},
},
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"epubjs": "^0.3.93",
"ethers": "^6.13.2",
"nuxt": "^3.12.3",
"nuxt-security": "2.1.5",
"siwe": "^2.3.2",
"uuid": "^10.0.0",
"viem": "2.x",
Expand Down
Loading

0 comments on commit ce9d399

Please sign in to comment.