veryfront 0.1.121 → 0.1.122
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/deno.js +1 -1
- package/esm/src/security/http/response/security-handler.js +3 -3
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +1 -1
- package/src/deno.js +1 -1
- package/src/src/security/http/response/security-handler.ts +3 -3
- package/src/src/utils/version-constant.ts +1 -1
package/esm/deno.js
CHANGED
|
@@ -12,8 +12,8 @@ export function generateNonce() {
|
|
|
12
12
|
/**
|
|
13
13
|
* Build a default CSP that works for typical veryfront apps.
|
|
14
14
|
*
|
|
15
|
-
* - Scripts: nonce-based + cdn.jsdelivr.net (Scalar API docs,
|
|
16
|
-
*
|
|
15
|
+
* - Scripts: nonce-based + cdn.jsdelivr.net + esm.sh (Scalar API docs,
|
|
16
|
+
* html2canvas, legacy/browser ESM hydration)
|
|
17
17
|
* - Styles: 'self' + 'unsafe-inline' + nonce + Google Fonts + cdn.veryfront.com
|
|
18
18
|
* plus style-src-attr 'unsafe-inline' so React style="" attributes remain
|
|
19
19
|
* compatible while inline <style> tags continue to use the nonce
|
|
@@ -28,7 +28,7 @@ export function generateNonce() {
|
|
|
28
28
|
function buildDefaultCSP(nonce) {
|
|
29
29
|
return [
|
|
30
30
|
`default-src 'self'`,
|
|
31
|
-
`script-src 'self' 'nonce-${nonce}' https://cdn.jsdelivr.net`,
|
|
31
|
+
`script-src 'self' 'nonce-${nonce}' https://cdn.jsdelivr.net https://esm.sh`,
|
|
32
32
|
`style-src 'self' 'unsafe-inline' 'nonce-${nonce}' https://fonts.googleapis.com https://cdn.veryfront.com`,
|
|
33
33
|
`style-src-attr 'unsafe-inline'`,
|
|
34
34
|
`img-src 'self' data: https:`,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.
|
|
1
|
+
export declare const VERSION = "0.1.122";
|
|
2
2
|
//# sourceMappingURL=version-constant.d.ts.map
|
package/package.json
CHANGED
package/src/deno.js
CHANGED
|
@@ -18,8 +18,8 @@ export function generateNonce(): string {
|
|
|
18
18
|
/**
|
|
19
19
|
* Build a default CSP that works for typical veryfront apps.
|
|
20
20
|
*
|
|
21
|
-
* - Scripts: nonce-based + cdn.jsdelivr.net (Scalar API docs,
|
|
22
|
-
*
|
|
21
|
+
* - Scripts: nonce-based + cdn.jsdelivr.net + esm.sh (Scalar API docs,
|
|
22
|
+
* html2canvas, legacy/browser ESM hydration)
|
|
23
23
|
* - Styles: 'self' + 'unsafe-inline' + nonce + Google Fonts + cdn.veryfront.com
|
|
24
24
|
* plus style-src-attr 'unsafe-inline' so React style="" attributes remain
|
|
25
25
|
* compatible while inline <style> tags continue to use the nonce
|
|
@@ -34,7 +34,7 @@ export function generateNonce(): string {
|
|
|
34
34
|
function buildDefaultCSP(nonce: string): string {
|
|
35
35
|
return [
|
|
36
36
|
`default-src 'self'`,
|
|
37
|
-
`script-src 'self' 'nonce-${nonce}' https://cdn.jsdelivr.net`,
|
|
37
|
+
`script-src 'self' 'nonce-${nonce}' https://cdn.jsdelivr.net https://esm.sh`,
|
|
38
38
|
`style-src 'self' 'unsafe-inline' 'nonce-${nonce}' https://fonts.googleapis.com https://cdn.veryfront.com`,
|
|
39
39
|
`style-src-attr 'unsafe-inline'`,
|
|
40
40
|
`img-src 'self' data: https:`,
|