Skip to content

Commit 0ace597

Browse files
authored
Merge pull request #21 from Aetherinox/beta
PR 21: fix: Content Security Policy in Obsidian console
2 parents cce133a + d723404 commit 0ace597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/backend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export class GistrBackend
151151
policy directive error if certain attributes arent used. doesnt affect the plugin, but erors are bad
152152
*/
153153

154-
ct_iframe.setAttribute ( 'csp', "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline' ${host} ;" )
154+
ct_iframe.setAttribute ( 'csp', "default-src * self blob: data: gap:; font-src 'self' https://fonts.gstatic.com/; style-src 'self' https://fonts.googleapis.com/ 'unsafe-inline'; script-src * 'self' 'unsafe-eval' 'unsafe-inline' blob: data: gap:; object-src * 'self' blob: data: gap:; img-src * self 'unsafe-inline' blob: data: gap:; connect-src self * 'unsafe-inline' blob: data: gap:; frame-src * self blob: data: gap:;" )
155155

156156
/*
157157
assign css, body, js

0 commit comments

Comments
 (0)