10000 chore: add deployment config option to append custom csp directives by Emyrk · Pull Request #15596 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

chore: add deployment config option to append custom csp directives #15596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Nov 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
save the byte allocations
  • Loading branch information
Emyrk committed Nov 21, 2024
commit 1fbb69a80e838312177c2c4f6cc1603fb217d31a
2 changes: 1 addition & 1 deletion coderd/coderd.go
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@ func New(options *Options) *API {
r.Get("/swagger/*", swaggerDisabled)
}

additionalCSPHeaders := make(map[httpmw.CSPFetchDirective][]string)
additionalCSPHeaders := make(map[httpmw.CSPFetchDirective][]string, len(api.DeploymentValues.AdditionalCSPPolicy))
var cspParseErrors error
for _, v := range api.DeploymentValues.AdditionalCSPPolicy {
// Format is "<directive> <value> <value> ..."
Expand Down
Loading
0