@dargmuesli/nuxt-vio 13.1.13 → 13.1.15
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"dependencies": {
|
3
|
-
"@dargmuesli/nuxt-cookie-control": "8.4.
|
3
|
+
"@dargmuesli/nuxt-cookie-control": "8.4.4",
|
4
4
|
"@eslint/compat": "1.1.0",
|
5
5
|
"@heroicons/vue": "2.1.4",
|
6
6
|
"@http-util/status-i18n": "0.8.1",
|
7
7
|
"@intlify/eslint-plugin-vue-i18n": "3.0.0",
|
8
|
-
"@nuxt/devtools": "1.3.
|
8
|
+
"@nuxt/devtools": "1.3.9",
|
9
9
|
"@nuxt/eslint": "0.3.13",
|
10
10
|
"@nuxt/image": "1.7.0",
|
11
11
|
"@nuxtjs/color-mode": "3.4.2",
|
@@ -27,17 +27,17 @@
|
|
27
27
|
"eslint-plugin-compat": "5.0.0",
|
28
28
|
"eslint-plugin-prettier": "5.1.3",
|
29
29
|
"eslint-plugin-yml": "1.14.0",
|
30
|
-
"globals": "15.
|
31
|
-
"jose": "5.6.
|
30
|
+
"globals": "15.8.0",
|
31
|
+
"jose": "5.6.3",
|
32
32
|
"nuxt-gtag": "2.0.6",
|
33
33
|
"nuxt-security": "2.0.0-rc.9",
|
34
34
|
"sweetalert2": "11.12.1",
|
35
|
-
"vue-tsc": "2.0.
|
35
|
+
"vue-tsc": "2.0.26"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
38
|
-
"@unhead/vue": "1.9.
|
38
|
+
"@unhead/vue": "1.9.15",
|
39
39
|
"@urql/devtools": "2.0.3",
|
40
|
-
"@urql/exchange-graphcache": "7.1.
|
40
|
+
"@urql/exchange-graphcache": "7.1.2",
|
41
41
|
"@urql/vue": "1.3.2",
|
42
42
|
"consola": "3.2.3",
|
43
43
|
"cookie-es": "1.1.0",
|
@@ -56,7 +56,7 @@
|
|
56
56
|
"stylelint-config-standard": "36.0.1",
|
57
57
|
"stylelint-no-unsupported-browser-features": "8.0.1",
|
58
58
|
"tailwindcss": "3.4.4",
|
59
|
-
"unhead": "1.9.
|
59
|
+
"unhead": "1.9.15",
|
60
60
|
"vue": "3.4.31",
|
61
61
|
"vue-router": "4.4.0"
|
62
62
|
},
|
@@ -116,5 +116,5 @@
|
|
116
116
|
"start:static": "serve .playground/.output/public --ssl-cert ./.config/certificates/ssl.crt --ssl-key ./.config/certificates/ssl.key"
|
117
117
|
},
|
118
118
|
"type": "module",
|
119
|
-
"version": "13.1.
|
119
|
+
"version": "13.1.15"
|
120
120
|
}
|
@@ -3,7 +3,7 @@ import type { NuxtOptions } from 'nuxt/schema'
|
|
3
3
|
import { GET_CSP } from '../../utils/constants'
|
4
4
|
|
5
5
|
// remove invalid `'none'`s and duplicates
|
6
|
-
const cleanupCsp = (
|
6
|
+
export const cleanupCsp = (
|
7
7
|
nuxtSecurityConfiguration: Partial<NuxtOptions['security']>,
|
8
8
|
) => {
|
9
9
|
if (
|
@@ -31,6 +31,8 @@ export default defineNitroPlugin((nitroApp) => {
|
|
31
31
|
// TODO: migrate to nuxt-security (https://github.com/Baroshem/nuxt-security/discussions/454)
|
32
32
|
if (import.meta.dev) {
|
33
33
|
nitroApp.hooks.hook('render:html', (html, { event }) => {
|
34
|
+
if (!event.context.security?.nonce) return
|
35
|
+
|
34
36
|
html.head.push(
|
35
37
|
`<meta property="csp-nonce" nonce="${event.context.security.nonce}">`,
|
36
38
|
)
|