Skip to content

Commit

Permalink
feat: nuxt security
Browse files Browse the repository at this point in the history
  • Loading branch information
csandru-plenty committed Jan 8, 2025
1 parent 3fc59c8 commit 2248cae
Show file tree
Hide file tree
Showing 5 changed files with 1,572 additions and 1,601 deletions.
2 changes: 1 addition & 1 deletion apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"@types/cors": "^2.8.17",
"@vue-storefront/middleware": "5.3.2",
"consola": "^3.2.3",
"consola": "^3.3.3",
"cors": "^2.8.5",
"dotenv": "^16.4.7",
"express": "^4.21.2"
Expand Down
7 changes: 6 additions & 1 deletion apps/web/configuration/security.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ export const securityConfiguration = {
'font-src': ["'self'", 'https:', 'data:'],
'form-action': ["'self'"],
'frame-ancestors': ["'self'"],
'img-src': ["'self'", 'data:', 'https://cdn02.plentymarkets.com'],
'img-src': [
"'self'",
'data:',
'https://cdn02.plentymarkets.com',
'https://v957ap1x34.execute-api.eu-central-1.amazonaws.com',
],
'object-src': ["'none'"],
'script-src-attr': ["'unsafe-inline'"],
'style-src': ["'self'", 'https:', "'unsafe-inline'"],
Expand Down
14 changes: 7 additions & 7 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@storefront-ui/vue": "^2.6.4",
"@types/culori": "^2.1.1",
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.17.10",
"@types/node": "^20.17.12",
"@vite-pwa/nuxt": "^0.10.6",
"@vitest/coverage-v8": "^0.33.0",
"@vue-storefront/middleware": "5.3.2",
Expand All @@ -60,15 +60,15 @@
"eslint-config-prettier": "^9.1.0",
"happy-dom": "^15.11.7",
"msw": "^2.7.0",
"nuxt": "^3.14.1592",
"sass": "^1.83.0",
"nuxt": "^3.15.1",
"sass": "^1.83.1",
"tsx": "^4.19.2",
"typedoc": "^0.27.5",
"typedoc-plugin-markdown": "^4.3.3",
"typedoc-vitepress-theme": "1.1.1",
"typedoc": "^0.27.6",
"typedoc-plugin-markdown": "^4.4.1",
"typedoc-vitepress-theme": "1.1.2",
"vitepress": "^1.5.0",
"vitest": "^1.6.0",
"vue-tsc": "^2.1.10",
"vue-tsc": "^2.2.0",
"vuepress": "^2.0.0-rc.19"
}
}
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,16 @@
"@types/cypress": "^1.1.6",
"@types/drift-zoom": "^1.5.2",
"@types/googlepay": "^0.7.6",
"@vee-validate/nuxt": "^4.14.7",
"@vee-validate/yup": "^4.14.7",
"@vee-validate/nuxt": "^4.15.0",
"@vee-validate/yup": "^4.15.0",
"country-flag-icons": "^1.5.13",
"dotenv": "^16.4.7",
"drift-zoom": "^1.5.1",
"eslint": "^9.17.0",
"nuxt-swiper": "^1.2.2",
"tailwindcss": "^3.4.17",
"vue": "^3.5.13"
"vue": "^3.5.13",
"yup": "^1.6.1"
},
"devDependencies": {
"@commitlint/cli": "^17.8.1",
Expand All @@ -57,7 +58,7 @@
"@nuxt/test-utils": "^3.15.1",
"@nuxtjs/turnstile": "^0.9.11",
"@paypal/paypal-js": "8.1.2",
"@types/uuid": "^9.0.8",
"@types/uuid": "^10.0.0",
"@vite-pwa/nuxt": "^0.10.6",
"@vue-storefront/eslint-config": "~2.0.0",
"@vue/test-utils": "^2.4.6",
Expand All @@ -68,7 +69,7 @@
"husky": "^8.0.3",
"is-ci": "^3.0.1",
"lint-staged": "^14.0.1",
"nuxt": "^3.14.1592",
"nuxt": "^3.15.1",
"nuxt-security": "2.1.5",
"nuxt-viewport": "^2.2.0",
"playwright-core": "^1.49.1",
Expand Down
Loading

0 comments on commit 2248cae

Please sign in to comment.