Drop unused nonce

parent b9211ab5
......@@ -7,7 +7,6 @@ import (
"github.com/go-errors/errors"
"github.com/hashworks/go-chart"
"github.com/influxdata/influxdb/client/v2"
"github.com/unrolled/secure"
"github.com/wcharczuk/go-chart/drawing"
"log"
"net/http"
......@@ -165,7 +164,6 @@ func (s *Server) handlerStatus(c *gin.Context) {
c.HTML(http.StatusOK, "status", gin.H{
"Title": "status",
"Description": "Status information.",
"Nonce": secure.CSPNonce(c),
"StatusTab": true,
"PageStartTime": pageStartTime,
"Services": services,
......
......@@ -11,7 +11,7 @@
<meta name="theme-color" content="#151515">
<style rel="stylesheet" type="text/css">{{ css }}</style>
{{ if .StatusTab }}<link rel="stylesheet" type="text/css" href="/css/status.css" nonce="{{ .Nonce }}">{{ end }}
{{ if .StatusTab }}<link rel="stylesheet" type="text/css" href="/css/status.css">{{ end }}
<link rel="icon" type="image/png" href="/img/favicon.ico">
<link rel="icon" type="image/png" href="/img/favicon-16x16.png" sizes="16x16">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment