Skip to content

Commit edb2314

Browse files
committed
feat: allow iframing urls on the same domain as the deployment
Used for AI tasks
1 parent 8387dd2 commit edb2314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/httpmw/csp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func CSPHeaders(telemetry bool, websocketHosts func() []string, staticAdditions
8888
CSPDirectiveMediaSrc: {"'self'"},
8989
// Report all violations back to the server to log
9090
CSPDirectiveReportURI: {"/api/v2/csp/reports"},
91-
CSPFrameAncestors: {"'none'"},
91+
CSPFrameAncestors: {"'self'"},
9292

9393
// Only scripts can manipulate the dom. This prevents someone from
9494
// naming themselves something like '<svg onload="alert(/cross-site-scripting/)" />'.

0 commit comments

Comments
 (0)