mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-19 14:13:17 -04:00
incorporate requested changes
Signed-off-by: Christian Richter <c.richter@opencloud.eu>
This commit is contained in:
@@ -19,11 +19,7 @@ func LoadCSPConfig(proxyCfg *config.Config) (*config.CSP, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if proxyCfg.CSPConfigFileOverrideLocation == "" {
|
||||
return loadCSPConfig(yamlContent, customYamlContent)
|
||||
} else {
|
||||
return loadCSPConfig(yamlContent, []byte{})
|
||||
}
|
||||
return loadCSPConfig(yamlContent, customYamlContent)
|
||||
}
|
||||
|
||||
// LoadCSPConfig loads CSP header configuration from a yaml file.
|
||||
|
||||
Reference in New Issue
Block a user