Skip to content

Commit 07e1ba9

Browse files
committed
Revert "Add frame-ancestors 'self'"
This reverts commit 5b2d7b6.
1 parent 5b2d7b6 commit 07e1ba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/repo/render.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func RenderFile(ctx *context.Context) {
4545
isTextFile := st.IsText()
4646

4747
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")
48+
ctx.Resp.Header().Add("Content-Security-Policy", "frame-src 'self'; sandbox allow-scripts")
4949

5050
if markupType := markup.Type(blob.Name()); markupType == "" {
5151
if isTextFile {

0 commit comments

Comments
 (0)