@netlify/plugin-csp-nonce 1.5.2 → 1.6.1
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/manifest.yml +6 -0
- package/package.json +1 -1
- package/src/__csp-nonce.ts +1 -1
package/manifest.yml
CHANGED
|
@@ -23,3 +23,9 @@ inputs:
|
|
|
23
23
|
- name: self
|
|
24
24
|
description: When true, restricts the execution of scripts to those that originate from the same origin (protocol, domain, and port) as the document.
|
|
25
25
|
default: true
|
|
26
|
+
- name: https
|
|
27
|
+
description: When true, allows execution of scripts from https origins.
|
|
28
|
+
default: false
|
|
29
|
+
- name: http
|
|
30
|
+
description: When true, allows execution of scripts from http origins.
|
|
31
|
+
default: false
|
package/package.json
CHANGED
package/src/__csp-nonce.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-ignore cannot find module
|
|
2
2
|
import type { Config, Context } from "netlify:edge";
|
|
3
3
|
// @ts-ignore cannot find module
|
|
4
|
-
import { csp } from "https://deno.land/x/csp_nonce_html_transformer@v2.
|
|
4
|
+
import { csp } from "https://deno.land/x/csp_nonce_html_transformer@v2.4.0/src/index-embedded-wasm.ts";
|
|
5
5
|
|
|
6
6
|
// Using `import ... with ...` syntax directly fails due to the node 18 type-checking we're running on this file,
|
|
7
7
|
// but this syntax works fine in deno 1.46.3 and 2.x which is what the functions are bundled and run with.
|