We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 459c705 commit 1fbb69aCopy full SHA for 1fbb69a
coderd/coderd.go
@@ -1379,7 +1379,7 @@ func New(options *Options) *API {
1379
r.Get("/swagger/*", swaggerDisabled)
1380
}
1381
1382
- additionalCSPHeaders := make(map[httpmw.CSPFetchDirective][]string)
+ additionalCSPHeaders := make(map[httpmw.CSPFetchDirective][]string, len(api.DeploymentValues.AdditionalCSPPolicy))
1383
var cspParseErrors error
1384
for _, v := range api.DeploymentValues.AdditionalCSPPolicy {
1385
// Format is "<directive> <value> <value> ..."
0 commit comments