Skip to content

Commit e4b928f

Browse files
authored
fix: enhance CSP rule (#392)
1 parent e1b3d26 commit e4b928f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

themes/docsy/layouts/_default/baseof.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
<head>
44
<!-- To handle CSP policy -->
55
<meta http-equiv="Content-Security-Policy"
6-
content="default-src 'self';
7-
style-src 'self' 'unsafe-inline' https://code.jquery.com https://cdn.jsdelivr.net;
8-
script-src 'self' https://code.jquery.com https://cdn.jsdelivr.net;
6+
content="script-src 'self' 'unsafe-inline' 'unsafe-eval' https://code.jquery.com https://cdn.jsdelivr.net https://fonts.googleapis.com/;
7+
style-src 'self' 'unsafe-inline' https://code.jquery.com https://cdn.jsdelivr.net https://fonts.googleapis.com/;
98
font-src 'self' https://cdn.jsdelivr.net;
109
img-src 'self' data:">
1110
{{ partial "head.html" . }}

0 commit comments

Comments
 (0)