Skip to content

Commit

Permalink
feat: add Content-Security-Policy (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuashuai authored Jun 17, 2024
1 parent bf3fe9c commit bd6c823
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions themes/apachecon/layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<head>
<title>{{if .IsHome}}{{ $.Site.Title }}{{else}}{{.Title}} - {{ $.Site.Title }}{{end}} - Powered by {{$.Site.Params.author}}</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'unsafe-inline' 'unsafe-eval' *; style-src 'unsafe-inline' *; img-src * data:; font-src * data:; connect-src *; frame-src *;">

<meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}" />
<meta name="keywords" content="{{if .IsHome}}{{ delimit $.Site.Params.keywords ", " }}{{else}}{{ delimit .Keywords ", " }}{{end}}" />

Expand Down

0 comments on commit bd6c823

Please sign in to comment.