We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b2d7b6 commit 07e1ba9Copy full SHA for 07e1ba9
routers/web/repo/render.go
@@ -45,7 +45,7 @@ func RenderFile(ctx *context.Context) {
45
isTextFile := st.IsText()
46
47
rd := charset.ToUTF8WithFallbackReader(io.MultiReader(bytes.NewReader(buf), dataRc), charset.ConvertOpts{})
48
- ctx.Resp.Header().Add("Content-Security-Policy", "frame-src 'self'; frame-ancestors 'self'; sandbox allow-scripts")
+ ctx.Resp.Header().Add("Content-Security-Policy", "frame-src 'self'; sandbox allow-scripts")
49
50
if markupType := markup.Type(blob.Name()); markupType == "" {
51
if isTextFile {
0 commit comments