add nonce for css
This commit is contained in:
parent
9ebe6ca2fb
commit
86cc1cbb2e
@ -199,7 +199,7 @@ func (this *ArchiveState) renderTemplateHead(w http.ResponseWriter) {
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<title>` + html.EscapeString(title) + `</title>
|
||||
<link rel="stylesheet" type="text/css" href="/style.css">
|
||||
<link rel="stylesheet" type="text/css" href="/style.css?nonce=` + fmt.Sprintf("%d", this.svr.startup.Unix()) + `">
|
||||
</head>
|
||||
<body>
|
||||
<div class="layout-top nav">
|
||||
|
Loading…
Reference in New Issue
Block a user