Skip to content

Commit bc612dd

Browse files
paskalumputun
authored andcommitted
Remove redundant frame ancestors log from middleware
The log message was printed on every request when allowed ancestors were configured, creating unnecessary noise in the logs.
1 parent 9132a61 commit bc612dd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

backend/app/rest/api/rest.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,6 @@ func securityHeadersMiddleware(imageProxyEnabled bool, allowedAncestors []string
628628
}
629629
frameAncestors := "*"
630630
if len(allowedAncestors) > 0 {
631-
log.Printf("[INFO] frame embedding allowed from %+v only", allowedAncestors)
632631
frameAncestors = strings.Join(allowedAncestors, " ")
633632
}
634633
w.Header().Set("Content-Security-Policy", fmt.Sprintf("default-src 'none'; base-uri 'none'; form-action 'none'; connect-src 'self'; frame-src 'self' mailto:; img-src %s; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; font-src data:; object-src 'none'; frame-ancestors %s;", imgSrc, frameAncestors))

0 commit comments

Comments
 (0)