mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 23:23:10 +08:00
Middleware: Add CSP support (#29740)
* Middleware: Add support for CSP Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> Co-authored by @iOrcohen
This commit is contained in:
@ -65,7 +65,9 @@ func New(cfg Config) (*Server, error) {
|
||||
shutdownFn: shutdownFn,
|
||||
childRoutines: childRoutines,
|
||||
log: log.New("server"),
|
||||
cfg: setting.NewCfg(),
|
||||
// Need to use the singleton setting.Cfg instance, to make sure we use the same as is injected in the DI
|
||||
// graph
|
||||
cfg: setting.GetCfg(),
|
||||
|
||||
configFile: cfg.ConfigFile,
|
||||
homePath: cfg.HomePath,
|
||||
|
Reference in New Issue
Block a user