mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-02 11:10:47 -05:00
* feat: add CSP and other security related headers in the oCIS proxy service * fix: consolidate security related headers - drop middleware.Secure * fix: use github.com/DeepDiver1975/secure * fix: acceptance tests * feat: support env var replacements in csp.yaml
14 lines
197 B
Go
14 lines
197 B
Go
package config
|
|
|
|
import (
|
|
_ "embed"
|
|
)
|
|
|
|
// CSP defines CSP header directives
|
|
type CSP struct {
|
|
Directives map[string][]string `yaml:"directives"`
|
|
}
|
|
|
|
//go:embed csp.yaml
|
|
var DefaultCSPConfig string
|