@dargmuesli/nuxt-vio 13.1.12 → 13.1.14
Sign up to get free protection for your applications and to get access to all the features.
- package/nuxt.config.ts +10 -6
- package/package.json +1 -1
- package/server/plugins/security.ts +1 -1
- package/types/fetch.d.ts +5 -0
package/nuxt.config.ts
CHANGED
@@ -29,12 +29,16 @@ export default defineNuxtConfig(
|
|
29
29
|
name: 'layout',
|
30
30
|
},
|
31
31
|
},
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
32
|
+
...(process.env.NUXT_PUBLIC_SITE_URL
|
33
|
+
? {}
|
34
|
+
: {
|
35
|
+
devServer: {
|
36
|
+
https: {
|
37
|
+
key: './.config/certificates/ssl.key',
|
38
|
+
cert: './.config/certificates/ssl.crt',
|
39
|
+
},
|
40
|
+
},
|
41
|
+
}),
|
38
42
|
devtools: {
|
39
43
|
timeline: {
|
40
44
|
enabled: true,
|
package/package.json
CHANGED
@@ -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 (
|