Skip to content

Commit

Permalink
fix: enhance CSP rule (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
imbajin authored Feb 14, 2025
1 parent e1b3d26 commit e4b928f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions themes/docsy/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
<head>
<!-- To handle CSP policy -->
<meta http-equiv="Content-Security-Policy"
content="default-src 'self';
style-src 'self' 'unsafe-inline' https://code.jquery.com https://cdn.jsdelivr.net;
script-src 'self' https://code.jquery.com https://cdn.jsdelivr.net;
content="script-src 'self' 'unsafe-inline' 'unsafe-eval' https://code.jquery.com https://cdn.jsdelivr.net https://fonts.googleapis.com/;
style-src 'self' 'unsafe-inline' https://code.jquery.com https://cdn.jsdelivr.net https://fonts.googleapis.com/;
font-src 'self' https://cdn.jsdelivr.net;
img-src 'self' data:">
{{ partial "head.html" . }}
Expand Down

0 comments on commit e4b928f

Please sign in to comment.