Skip to content

Commit c1807cb

Browse files
Update createCsp.ts
1 parent 3891eb7 commit c1807cb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/utils/createCsp.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@ let csp = ''
33
// worker-src
44
csp += 'worker-src'
55
// allow our own worker scripts
6-
csp += " 'self'"
6+
csp += " 'self' blob:"
77
// allow Para (Capsule) worker scripts
88
csp += ' https://app.beta.usecapsule.com'
99
csp += ' https://app.usecapsule.com'
10-
csp += ' blob:'
1110
// end worker-src
1211
csp += ';'
1312

1413
// script-src
1514
csp += ' script-src'
1615
// allow self
17-
csp += " 'self'"
16+
csp += " 'self' blob:"
1817
// allow plausible script
1918
csp += ' plausible.io'
2019
// allow cloudflare analytics script

0 commit comments

Comments
 (0)